Enhanced RPC
Simple And Powerful
🔥 enhancedGetPrice
Get the real-time exchange rate of the Solana token ($SOL)
Parameters:
<[string]>
- token mint address array
The native token has no mint address, so it's value is native
<[string]>
- Array of supported currencies, the values of currencies is as follows:usd
cny
Results:
<[object]>
- a JSON object array containing:address: <string>
, token mint addresscurrencies: <[object]>
, currency info object
Request example:
Response example:
🔥 enhancedGetTokensAndNFTs
Get token list and NFT list by giving an address
Parameters:
<string>
- Pubkey of account to query, as base-58 encoded string<object>: optional
parseMetadataUri: <boolean, default: false>
If true, the API will parse the metadata's uri that can get the image url and other info.
Results:
<object>
- a JSON object containing:lamports: <u64>
, lamports balance of the addressnfts: <[object]>
, NFT list of the addresstokens: <[object]>
, token list of the address
Request Example
Response Example
🔥 enhancedGetTransactionsByAddress
Get parsed transaction history by giving an address
Parameters:
<string>
- account address as base-58 encoded string<object>
- (optional) configuration object containing the following fields:limit: <number>
- (optional) maximum transactions to return (between 1 and 1,000, default: 1,000).before: <string>
- (optional) start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block.until: <string>
- (optional) search until this transaction signature, if found before limit reached.
Results:
<[object]>
- a JSON object array containing:type: <string>
, parsed type for a single transaction, the type value is as belowunknown
, can not parse this transaction in servertransfer-token
, the transaction contains transfer token action
lamportsChange: <int64>
, the account by given address lamports change in this transactionlamportsFee: <int64>
, the transaction lamports feesignature: <string>
, the transaction signatureblockTime: <int64>
, the transaction block timestatus: <"success" | "failed">
, the status of the transactiondata: <object>
, extended data, when the type value is notunknown
, the data is an object containing transaction detail
Request example:
Response example:
🔥 enhancedSendAndConfirmRawTransaction
Same as `sendAndConfirmRawTransaction` in @solana/web3.js
Last updated