Transaction APIs
Developer friendly transaction APIs.
Transaction history is only limited to past 3-4 days. From both RPCs and APIs.
Parse Transaction Signature
This endpoint returns the parsed transaction details for a given txn signature.
Transaction history is only limited to past 3-4 days. From both RPCs and APIs.
GET /transaction/parsed
Query Params:
txn_signature: Transaction signature
Transaction History
Fetches a list of parsed transactions for an on-chain account. The response returns the transactions with the latest transactions first. The response can have results of a maximum of 100 transactions in 1 single API call.
Transaction history is only limited to past 3-4 days. From both RPCs and APIs.
GET /transaction/history
Query Params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
account: account address
tx_num: (optional) How many transactions (maximum 100 transactions at a time) do you want to fetch
before_tx_signature: (optional) Tx signature before which X number of transactions will be fetched, in reverse order going back in time
until_tx_signature: (optional) Tx signature until which X number of transactions will be fetched, in reverse order going back in time
enable_raw: (optional) boolean to send raw data along with parsed information. Send 'true' from raw data
enable_events: (optional) boolean to send parsed anchor events along with parsed information.
commitment: (optional) confirmed (default) or finalized.
Parse Multiple Transaction Signatures
Fetch parsed bulk transactions in a single call.
Transaction history is only limited to past 3-4 days. From both RPCs and APIs.
POST /transaction/parse_selected
Body params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
transaction_signatures: array of strings) Selected transaction signatures (minimum 1 and maximum 100 transactions could be fetched)
enable_raw: (optional) boolean to send raw data along with parsed information. Send 'true' from raw data
enable_events: (optional) boolean to send parsed anchor events along with parsed information.
commitment: (optional) confirmed (default) or finalized.
Send Transaction
This API endpoint lets you submit your signed transaction into the Solana blockchain, via Shyft's dedicated RPC node, which reduces the risk of transaction drop to near 0.
API Working:
This endpoint can be used to submit transactions to blockchain using Shyft dedicated RPC nodes.
NOTE: Above code snippet uses private keys for signing a txn, but a txn can be signed using wallet adapters as well. Please refer to this function for signing using wallet adapter (https://github.com/Shyft-to/community-projects/blob/f2552c5e809a517ac9820dda0008d06f1d9e0013/demo-hh/src/shyft.js#L23)
POST /transaction/send_txn
Body params:
network: string [mainnet-beta, devnet]
encoded_transaction: string - Base64 encoded and signed transaction string.
Send Multiple Transactions
This API endpoint lets you send bulk transactions to Solana blockchain, via Shyft's dedicated RPC node, which reduces the risk of transaction drop to near 0.
POST /transaction/send_many_txns
Body params:
network: string - [mainnet-beta, devnet]
encoded_transactions: string - Array of base64 encoded and signed transaction strings (maximum 100).
commitment (optional): processed, confirmed, finalized. API returns after the desired commitment level is reached for all txs or they error out.
The response times may increase with commitment
levels. System waits for the transactions to reach the required commitment level.
Last updated