sendTransaction - Solana
Example code for the sendTransaction json-rpc method. Сomplete guide on how to use sendTransaction json-rpc in GetBlock.io Web3 documentation.
Parameters
transaction
- string
fully-signed Transaction, as encoded string
config
- object
Configuration object containing the following field: - skipPreflight: bool - if true, skip the preflight transaction checks (default: false) - preflightCommitment: string (optional) - Commitment level to use for preflight (default: "finalized"). - encoding: string (optional) - Encoding used for the transaction data. Either "base58" (slow, DEPRECATED), or "base64". (default: "base58"). - maxRetries: usize (optional) - Maximum number of times for the RPC node to retry sending the transaction to the leader. If this parameter not provided, the RPC node will retry the transaction until it is finalized or until the blockhash expires.
Request
Response
Last updated