sendTransaction - Solana

sendTransaction. Allows developers to send a signed transaction to the network

sendTransaction - solana [Value: 10CU]
The method in Solana allows developers to send a signed transaction to the network
Use cases

Use cases

  • Send transactions on the Solana network efficiently
  • Facilitate token transfers between Solana accounts
  • Execute smart contract calls through transactions
Constraints

Constraints

  • Requires sufficient SOL balance for transaction fees
  • Dependent on network congestion and performance
  • API rate limits may impact transaction throughput
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"sendTransaction","params":["ENTER_ENCODED_TRANSACTION_ID"],"id":1,"jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": "5uYdsS7m7pD1w1CVq8RCbVQJ1Ff1ECUdvys3Y6aM4RTKZ7aQRQ7Eg2Bz8K9j2s3d8N2FkZ2MfZn5a1X7CxZ1",
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
transactionstring
The transaction data encoded as a string. For more information on submitting signed transactions, visit the provided link.
array
skipPreflightboolean
(Default: false) If true, skips preflight transaction checks.
preflightCommitmentstring
(Default: finalized) The commitment level used for preflight.
encodingstring
The format for encoding account data, which can be one of: base58 (slow), base64, base64+zstd, or jsonParsed.
maxRetriesuint64
Maximum retries for the RPC node to send the transaction to the leader. If not provided, retries continue until the transaction is finalized or the blockhash expires.
minContextSlotinteger
The minimum slot for evaluating the request.

Response

200

Response params

object
idinteger
jsonrpcstring
resultstring
object
slotint64
valueobject
object
lamportsint64
The number of lamports (smallest unit of SOL) assigned to this account.
ownerstring
Base-58 encoded public key of the program assigned to this account
datastring
Data associated with the account, either as encoded binary data or in JSON format, depending on the specified encoding. Format: [data, encoding] or JSON object
executablestring
dicates if the account contains a program and is read-only.
rentEpochstring
The epoch at which this account will next owe rent.