Solana RPC

Transaction Methods

Submit, simulate, and query Solana transactions - including signatures, confirmations, and compute unit estimation.

getTransaction

POST - JSON-RPC

Fetches detailed information about a specific transaction using its signature.

params[0]stringrequired

Transaction signature as a base-58 encoded string.

params[1]object

Configuration object:

  • encoding (string) - json, jsonParsed, base58, base64
  • commitment (string) - finalized or confirmed
  • maxSupportedTransactionVersion (integer)
curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"getTransaction","params":["2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oeYYd8Tm5ATGQ7ufRYM5jnFdoP8bHKevSX1Tc3FRxPpM",{"encoding":"jsonParsed","maxSupportedTransactionVersion":0}]}'

getTransactionCount

POST - JSON-RPC

Returns the current transaction count from the ledger.

params[0]object

Configuration object with optional commitment and minContextSlot.

curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"getTransactionCount"}'

getSignatureStatuses

POST - JSON-RPC

Returns the statuses of a list of transaction signatures (max 256).

params[0]arrayrequired

Array of transaction signatures as base-58 encoded strings (max 256).

params[1]object

Configuration object:

  • searchTransactionHistory (boolean) - search beyond recent slots
curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"getSignatureStatuses","params":[["5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"],{"searchTransactionHistory":true}]}'

getSignaturesForAddress

POST - JSON-RPC

Returns transaction signatures for confirmed transactions that include the given account address.

params[0]stringrequired

Account address as a base-58 encoded string.

params[1]object

Configuration object:

  • commitment (string)
  • limit (integer) - max results (1-1000, default 1000)
  • before (string) - start searching before this signature
  • until (string) - search until this signature
  • minContextSlot (integer) - minimum slot for evaluation
curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"getSignaturesForAddress","params":["Vote111111111111111111111111111111111111111",{"limit":1}]}'

sendTransaction

POST - JSON-RPC

Submits a signed transaction to the cluster for processing.

params[0]stringrequired

Fully-signed transaction as an encoded string.

params[1]object

Configuration object:

  • encoding (string) - base58 or base64 (default: base58)
  • skipPreflight (boolean) - skip preflight checks (default: false)
  • preflightCommitment (string) - commitment for preflight (default: finalized)
  • maxRetries (integer) - max node retry attempts
  • minContextSlot (integer) - min slot for preflight evaluation
curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"sendTransaction","params":["4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsaBCncVG7BFggS8w9snUts67BSh3EqKpXLUm5UMHfD7ZBe9GhARjbNQMLJ1QD3Spr6oMTBU6EhdB4RD8CP2xUxr2u3d6fos36PD98XS6oX8TQjLpsMwncs5DAMiD4nNnR8NBfyghGCWvCVifVwvA8B8TJxE1aiyiv2L429BCWfyzAme5sZW8rDb14NeCQHhZbtNqfXhcp2tAnaAT",{"encoding":"base58"}]}'

simulateTransaction

POST - JSON-RPC

Simulates sending a transaction without requiring a valid signature. Useful for testing transaction execution.

params[0]stringrequired

Transaction as an encoded string.

params[1]object

Configuration object:

  • commitment (string) - commitment level
  • sigVerify (boolean) - verify signatures (conflicts with replaceRecentBlockhash)
  • replaceRecentBlockhash (boolean) - replace blockhash with latest
  • encoding (string) - base58 or base64
  • innerInstructions (boolean) - return inner instructions in result
  • minContextSlot (integer) - minimum slot for evaluation
  • accounts (object) - { encoding, addresses } to return account state
curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"jsonrpc":"2.0","id":1,"method":"simulateTransaction","params":["AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCph/IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",{"encoding":"base64","replaceRecentBlockhash":true}]}'
result.valueobject

errobject
Transaction error (null if success).
logsarray
Array of log messages from execution.
accountsarray
Returned account states if requested.
unitsConsumedinteger
Compute units consumed.
returnDataobject
Return data from the transaction.