sendTransaction

Submits a signed transaction to the cluster for processing.

POST Category: transaction

Parameters

NameTypeDescription
transactionstringFully-signed transaction, as encoded string. (required)
configobjectConfiguration object. (optional)
config.encodingstringEncoding used for the transaction data ("base58" or "base64", default: "base58"). (optional)
config.skipPreflightboolIf true, skip the preflight transaction checks. (optional)
config.preflightCommitmentstringCommitment level for preflight. (optional)
config.maxRetriesusizeMaximum number of times for the RPC node to retry sending the transaction. (optional)
config.minContextSlotnumberSet the minimum slot at which to perform preflight checks. (optional)

Response

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

Example Request

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"
  ]
}'

Example Response

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

Developer Guide

sendTransaction Solana Developer Guide — Send SOL from a connected wallet: build the transfer in the browser, have the wallet sign it, and submit the signed bytes with sendTransaction.

← Back to all methods