RPC MethodsHTTPsendTransaction

Transaction

sendTransaction

Submits a signed transaction to the cluster for processing.

Parameters

transactionstring required

Fully-signed transaction, as encoded string.

configobject optional

Configuration object.

encodingstring

Encoding used for the transaction data ("base58" or "base64", default: "base58").

skipPreflightbool

If true, skip the preflight transaction checks.

preflightCommitmentstring

Commitment level for preflight.

maxRetriesusize

Maximum number of times for the RPC node to retry sending the transaction.

minContextSlotnumber

Set the minimum slot at which to perform preflight checks.

Result

string

First transaction signature embedded in the transaction, as base-58 encoded string.

A Signature Is Not a Confirmation

A successful response means a validator accepted the transaction into its queue — nothing more. The transaction can still fail on-chain, and it can still be dropped without ever landing in a block. To learn what actually happened, watch the returned signature with signatureSubscribe or poll getSignatureStatuses, and treat only an err of null as success. A non-null err means the transaction was included and failed: the fee was still charged, and its instructions did not take effect. The sendTransaction developer guide walks through building, signing and submitting a transfer from the browser, and confirming a transaction over a WebSocket covers turning the returned signature into a real outcome without blocking the interface.

Transaction Performance

Transactions sent via FluxRPC typically land quite fast — we publish average TX landing speeds here. On your FluxRPC dashboard page, you can inspect the landing speeds of your TX compared to the FluxRPC average. Select the API key you wish to inspect, then select "Transaction sending" from the middle menu. From the rightmost menu, choose to view weekly or monthly results.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sendTransaction",
  "params": [
    "4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsaBCncVG7BFggS8w9snUts67BSh3EqKpXLUm5UMHfD7ZBe9GhARjbNQMLJ1QD3Spr6oMTBU6EhdB4RD8CP2xUxr2u3d6fos36PD98XS6oX8TQjLpsMwncs5DAMiD4nNnR8NBfyghGCWvCVifVwvA8B8TJxE1aiyiv2L429BCWfyzAme5sZW8rDb14NeCQHhZbtNqfXhcp2tAnaAT"
  ]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": "2id3YC2jK9G5Wo2phDx4gJVAew8DcY5NAojnVuao8rkxwPYPe8cSwE5GzhEgJA2y8fVjDEo6iR7Bv5j3e7JDAYR6",
"id": 1
}