sendTransaction

This method acts as a proxy to the solana sendTransaction RPC Method. This method will send the transaction received as a regular solana transaction via the solana rpc method and also submit it as a bundle. The bundling and a minimum tip for the bundle would be paid by Jito. Please note that the minimum tip might not be enough to get the bundle through the auction especially in times of high demand. If you use the query parameter, bundleOnly=true, the transaction will only be sent out as a bundle and not as a regular transaction via the rpc.

Parameters

Please follow the guidelines in https://solana.com/docs/rpc/http/sendtransaction#parameters

NOTE: This method always sets skip_preflight=true regardless of the value set by the client. This means the transaction will not be simulated in the RPC before being sent to the leader, as part of the sendTransaction flow. The bundle path however will go thru the auction and normal simulations.

Result

The result will be the same as https://solana.com/docs/rpc/http/sendtransaction#result If sending as a bundle was successful, you can get the bundle_id for further querying from the custom header in the response x-bundle-id

Code sample

The samples are the same found at https://solana.com/docs/rpc/http/sendtransaction#code-sample and the response https://solana.com/docs/rpc/http/sendtransaction#response

Request

curl https://mainnet.block-engine.jito.wtf/api/v1/transactions -X POST -H "Content-Type: application/json" -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "sendTransaction",
    "params": [
      "4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsaBCncVG7BFggS8w9snUts67BSh3EqKpXLUm5UMHfD7ZBe9GhARjbNQMLJ1QD3Spr6oMTBU6EhdB4RD8CP2xUxr2u3d6fos36PD98XS6oX8TQjLpsMwncs5DAMiD4nNnR8NBfyghGCWvCVifVwvA8B8TJxE1aiyiv2L429BCWfyzAme5sZW8rDb14NeCQHhZbtNqfXhcp2tAnaAT"
    ]
  }
'

Response

{
  "jsonrpc": "2.0",
  "result": "2id3YC2jK9G5Wo2phDx4gJVAew8DcY5NAojnVuao8rkxwPYPe8cSwE5GzhEgJA2y8fVjDEo6iR6ykBvDxrTQrtpb",
  "id": 1
}

Last updated