sendTransaction
Submits a signed transaction to the cluster for processing.
POST Category: transaction
Parameters
| Name | Type | Description |
|---|---|---|
transaction | string | Fully-signed transaction, as encoded string. (required) |
config | object | Configuration object. (optional) |
config.encoding | string | Encoding used for the transaction data ("base58" or "base64", default: "base58"). (optional) |
config.skipPreflight | bool | If true, skip the preflight transaction checks. (optional) |
config.preflightCommitment | string | Commitment level for preflight. (optional) |
config.maxRetries | usize | Maximum number of times for the RPC node to retry sending the transaction. (optional) |
config.minContextSlot | number | Set 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.