Skip to content
These methods handle the creation, simulation, and inspection of transactions on the blockchain. They are essential for executing state changes, estimating fees, checking transaction outcomes, and monitoring transaction lifecycles.

​getSignatureStatuses

Returns the signature statuses for a given signature. The sample signature belongs to a transfer that was processed by a Surfnet earlier. On a fresh Surfnet the value is null until you send a transaction. Parameters
​signatures
array[string]
required
An array of transaction signatures to query, as base-58 encoded strings.
​config
object
Configuration object for the query.
Result
​context
object
​value
array<any>
Request
Response

​requestAirdrop

Requests an airdrop to a given address. Parameters
​pubkey
string
required
The public key of the account to receive the airdrop, as a base-58 encoded string.
​lamports
integer
required
The amount of lamports to airdrop.
​config
object
Configuration object for the query.
Result
​result
string
requestAirdrop - Requests an airdrop to a given address
Request
Response

​sendTransaction

Sends a transaction to the cluster. The sample payload is a base64-encoded, signed SOL transfer built against an earlier Surfnet blockhash. Build your own with a recent blockhash from getLatestBlockhash; skipPreflight is set so that the stale sample is accepted and returns its signature instead of a preflight error. Parameters
​transaction
string
required
The signed transaction, as a base-64 encoded string.
​config
object
Configuration object for the query.
Result
​result
string
sendTransaction - Sends a transaction to the cluster
Request
Response

​simulateTransaction

Simulates a transaction. The sample payload is a signed SOL transfer whose fee payer, GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB, must be a funded System Program account with no data on your Surfnet. On an offline Surfnet the account doesn’t exist (AccountNotFound), and on the default mainnet fork it’s owned by a program (InvalidAccountForFee). Fund it first with surfnet_setAccount and the params ["GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB", {"lamports": 1000000000, "owner": "11111111111111111111111111111111", "data": ""}], or simulate your own transaction. Parameters
​transaction
string
required
The transaction to simulate, as a base-64 encoded string.
​config
object
Configuration object for the query.
Result
​context
object
​value
object
Request
Response

​getTransaction

Returns the transaction for a given signature. The sample signature belongs to a transfer that was processed by a Surfnet earlier. On a fresh Surfnet the result is null until you send a transaction. Parameters
​signature
string
required
The transaction signature to query, as a base-58 encoded string.
​config
object
Configuration object for the query.
Result
​blockTime
integer
Block time
​meta
object
Transaction metadata
​slot
integer
The transaction slot
​transaction
object
The encoded transaction
​version
integer
Transaction version
Request
Response

​getSignaturesForAddress

Returns the signatures for a given address. Parameters
​address
string
required
The address to query for transaction signatures, as a base-58 encoded string.
​before
string
Start searching backwards from this transaction signature.
​limit
integer
The maximum number of signatures to return.
​until
string
Search until this transaction signature.
Result
​result
array<RpcConfirmedTransactionStatusWithSignature>
getSignaturesForAddress - Returns signatures for an address
Request
Response

​getFeeForMessage

Returns the fee for a given message. Parameters
​message
string
required
The message to calculate the fee for, as a base-64 encoded string.
​config
object
Configuration object for the query.
Result
​context
object
​value
integer
Request
Response

​getStakeMinimumDelegation

Returns the stake minimum delegation. Parameters
​config
object
Configuration object for the query.
Result
​context
object
​value
integer
Request
Response