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 isnull until you send a transaction.
Parameters
signatures
An array of transaction signatures to query, as base-58 encoded strings.
config
Configuration object for the query.
context
value
Request
Response
requestAirdrop
Requests an airdrop to a given address. Parameterspubkey
The public key of the account to receive the airdrop, as a base-58 encoded string.
lamports
The amount of lamports to airdrop.
config
Configuration object for the query.
result
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 fromgetLatestBlockhash; skipPreflight is set so that the stale sample is accepted and returns its signature instead of a preflight error.
Parameters
transaction
The signed transaction, as a base-64 encoded string.
config
Configuration object for the query.
result
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
The transaction to simulate, as a base-64 encoded string.
config
Configuration object for the query.
context
value
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 isnull until you send a transaction.
Parameters
signature
The transaction signature to query, as a base-58 encoded string.
config
Configuration object for the query.
blockTime
Block time
meta
Transaction metadata
slot
The transaction slot
transaction
The encoded transaction
version
Transaction version
Request
Response
getSignaturesForAddress
Returns the signatures for a given address. Parametersaddress
The address to query for transaction signatures, as a base-58 encoded string.
before
Start searching backwards from this transaction signature.
limit
The maximum number of signatures to return.
until
Search until this transaction signature.
result
getSignaturesForAddress - Returns signatures for an address
Request
Response
getFeeForMessage
Returns the fee for a given message. Parametersmessage
The message to calculate the fee for, as a base-64 encoded string.
config
Configuration object for the query.
context
value
Request
Response
getStakeMinimumDelegation
Returns the stake minimum delegation. Parametersconfig
Configuration object for the query.
context
value
Request
Response