About Rpc Nodes MCP
Rpc Nodes MCP is an MCP server published by chainstacklabs in the AI category: [DEPRECATED] Superseded by the official Chainstack MCP server at mcp.chainstack.com — minimal, fast, and extensible MCP server for interactions with JSON-RPC blockchain nodes. Conduid read 86 tools from its source: base58_to_base64, base64_to_base58, calc_associated_bonding_curve_addr, calculate_bonding_curve_address, calculate_bonding_curve_price, calculate_bonding_curve_progress and 80 more. No package is published for it, so it installs from a source checkout.
The repository has 19 stars and 6 forks, is licensed Apache-2.0, and its last commit was on 9 Apr 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include web3, pumpdotfun, solana, ethereum and blockchain.
Install
git clone https://github.com/chainstacklabs/rpc-nodes-mcpTools (86)
base58_to_base64Converts a base58 string into a base64-encoded string. Example: base58_to_base64("3CMCRgEm8HVz3DrWaCCid3vAANE42jcEv9") -> "MTIzNDU2Nzg5MA=="| Parameter | Type | Description |
|---|---|---|
| value * | string |
base64_to_base58Converts a base64 string into a base58-encoded string. Example: base64_to_base58("MTIzNDU2Nzg5MA==") -> "3CMCRgEm8HVz3DrWaCCid3vAANE42jcEv9"| Parameter | Type | Description |
|---|---|---|
| value * | string |
calc_associated_bonding_curve_addrCalculate the associated bonding curve token account address for a mint. This is for Pump.fun tokens on bonding curve operations. Parameters: - mint (str): The base-58 mint address. Returns: Base-58 ATA address for bonding curve.| Parameter | Type | Description |
|---|---|---|
| mint * | string |
calculate_bonding_curve_addressDerive the bonding curve PDA for a given token mint using Pump.fun rules. This is for Pump.fun tokens on bonding curve operations. Parameters: - mint (str): The base-58 mint address. Returns: Dictionary with 'bonding_curve_address' and 'bump'.| Parameter | Type | Description |
|---|---|---|
| mint * | string |
calculate_bonding_curve_priceCalculate the token price in SOL using bonding curve state data. This is for Pump.fun tokens on bonding curve operations. Requires base64/hex input from getAccountInfo.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| encoding | string |
calculate_bonding_curve_progressCalculate bonding curve completion percent (0-100). This is for Pump.fun tokens on bonding curve operations. Requires base64/hex input from getAccountInfo.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| encoding | string |
convert_hex_to_intConverts a hexadecimal string (e.g., block number, gas used) into an integer. Example: convert_hex_to_int("0x10") -> 16| Parameter | Type | Description |
|---|---|---|
| hex_str * | string |
convert_hex_wei_to_decimal_ethConverts Wei amount (in hexadecimal format) into Ether (ETH) in decimal format.| Parameter | Type | Description |
|---|---|---|
| wei * | string |
convert_int_to_hexConverts an integer to a hexadecimal string prefixed with 0x. Example: convert_int_to_hex(255) -> "0xff"| Parameter | Type | Description |
|---|---|---|
| value * | integer |
convert_lamports_to_microlamportsConverts lamport amount (int or string) into microlamports (integer). Example: convert_lamports_to_microlamports("2.5") -> 2500000| Parameter | Type | Description |
|---|---|---|
| lamports * | string |
convert_lamports_to_solConverts lamport amount (int or string) into SOL (decimal). Example: convert_lamports_to_sol("1000000000") -> 1.0| Parameter | Type | Description |
|---|---|---|
| lamports * | string |
convert_microlamports_to_lamportsConverts microlamport amount (int or string) into lamports (decimal). Example: convert_microlamports_to_lamports("1000000") -> 1.0| Parameter | Type | Description |
|---|---|---|
| microlamports * | string |
convert_sol_to_lamportsConverts SOL amount (decimal string or float) into lamports (integer). Example: convert_sol_to_lamports("1.5") -> 1500000000| Parameter | Type | Description |
|---|---|---|
| sol * | string |
convert_timestamp_to_datetimeConverts a Unix timestamp (decimal or hex string) into an ISO 8601 datetime. Example: convert_timestamp_to_datetime("1716300000") -> "2024-05-21T12:00:00Z" convert_timestamp_to_datetime("0x660b6c80") -> "2024-03-31T00:00:00Z"| Parameter | Type | Description |
|---|---|---|
| timestamp * | string |
debug_traceBlockCall the debug_traceBlock JSON-RPC method to trace all transactions in a block.
Description: Executes all transactions in the provided block and returns detailed traces for each.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- rlp_encoded_block (str): The RLP-encoded full block containing transactions.
- tracer (str, optional): Tracer type (e.g., 'callTracer', 'prestateTracer').
- only_top_call (bool, optional): If true, traces only top-level calls.
- diff_mode (bool, optional): If true, includes pre/post state differences.
- timeout (str, optional): Tracer timeout value (e.g., '5s').
Returns: An array of transaction trace objects with the following fields:
- type: Call type (CALL, STATICCALL, etc).
- from: Sender address.
- to: Target contract or address.
- value: Transferred ETH (hex).
- gas: Provided gas (hex).
- gasUsed: Gas consumed (hex).
- input: Input data of the call.
- output: Returned output data.
- calls: Nested sub-calls, if any.
Each sub-call also includes the same structure recursively.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": ["RLP_ENCODED_BLOCK", {"tracer": "callTracer"}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| diff_mode | boolean | |
| only_top_call | boolean | |
| rlp_encoded_block * | string | |
| timeout | string | |
| tracer | string |
debug_traceBlockByHashCall the debug_traceBlockByHash JSON-RPC method to trace all transactions in a block using its hash.
Description: Re-executes and traces every transaction in the block identified by the given hash.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_hash (str): Hash of the block to trace.
- tracer (str, optional): Type of tracer (e.g., 'callTracer', 'prestateTracer').
- only_top_call (bool, optional): If true, traces only top-level calls.
- diff_mode (bool, optional): If true, returns pre/post state differences.
- timeout (str, optional): Timeout duration string (e.g., '5s').
Returns: A list of trace objects for each transaction in the block, each with:
- type: Call type (e.g., CALL, STATICCALL).
- from: Sender address.
- to: Target contract or address.
- value: ETH value transferred (hex).
- gas: Gas provided (hex).
- gasUsed: Gas consumed (hex).
- input: Call input data.
- output: Returned output data.
- calls: List of nested sub-calls, each with the same structure.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "debug_traceBlockByHash",
"params": ["0x97b49e4...", {"tracer": "callTracer"}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_hash * | string | |
| chain * | string | |
| diff_mode | boolean | |
| only_top_call | boolean | |
| timeout | string | |
| tracer | string |
debug_traceBlockByNumberCall the debug_traceBlockByNumber JSON-RPC method to trace all transactions in a block by number.
Description: Re-executes and traces every transaction in the specified block.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_number (str): Block number or tag (e.g., 'latest', 'pending', 'finalized').
- tracer (str, optional): Tracer type (e.g., 'callTracer', 'prestateTracer').
- only_top_call (bool, optional): If true, traces only top-level calls.
- diff_mode (bool, optional): If true, includes pre/post state differences.
- timeout (str, optional): Optional timeout (e.g., '5s').
Returns: A list of transaction trace objects, each with:
- type: Type of call (CALL, STATICCALL, etc).
- from / to: Sender and receiver addresses.
- value: Transferred amount in hex.
- gas / gasUsed: Gas limit and consumed gas.
- input / output: Call input and output data.
- calls: List of internal sub-calls, each with the same structure.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": ["latest", {"tracer": "callTracer"}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_number * | string | |
| chain * | string | |
| diff_mode | boolean | |
| only_top_call | boolean | |
| timeout | string | |
| tracer | string |
debug_traceCallCall the debug_traceCall JSON-RPC method to trace the execution of a call without broadcasting it.
Description: Simulates a contract call at a given block and returns an execution trace. Useful for inspecting internal call behavior.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- from_address (str, optional): Sender address.
- to_address (str): Target contract address.
- gas (str, optional): Gas limit (hex).
- gas_price (str, optional): Gas price (hex).
- value (str, optional): ETH value sent (hex).
- data (str, optional): Encoded method input.
- block (str): Block tag or number (e.g., 'latest').
- tracer (str, optional): Tracer type (e.g., 'callTracer').
- only_top_call (bool, optional): Trace only top-level call if true.
- diff_mode (bool, optional): Show state diff if true.
- timeout (str, optional): Timeout string (e.g., '5s').
Returns: A transaction trace object with the following fields:
- failed: Boolean indicating whether the execution failed.
- gas: Total gas consumed during execution (hex).
- returnValue: Return value of the call (hex).
- structLogs: List of execution steps with:
- pc: Current program counter (bytecode index).
- op: Opcode name being executed.
- gas: Remaining gas at that step.
- gasCost: Gas cost of the operation.
- depth: Call stack depth.
- error: Error message, if any.
- stack: Current EVM stack values.
- memory: Current EVM memory.
- storage: Current storage mapping.
- refund: Refund counter value.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [{"to": "0x...", "data": "0x..."}, "latest", {"tracer": "callTracer"}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block | string | |
| chain * | string | |
| data | string | |
| diff_mode | boolean | |
| from_address | string | |
| gas | string | |
| gas_price | string | |
| only_top_call | boolean | |
| timeout | string | |
| to_address | string | |
| tracer | string | |
| value | string |
debug_traceTransactionCall the debug_traceTransaction JSON-RPC method to trace the execution of a transaction.
Description: Re-executes a transaction exactly as the Ethereum node would, returning detailed execution trace data.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- tx_hash (str): Transaction hash to trace.
- tracer (str, optional): Tracer type (e.g., 'callTracer', 'prestateTracer').
- only_top_call (bool, optional): If true, trace only the top-level call (used in tracerConfig).
- diff_mode (bool, optional): If true, returns pre and post state diff (used in tracerConfig).
- timeout (str, optional): Timeout string for the trace call (e.g., '10s').
Returns: A trace object with execution metadata.
Returned trace fields include:
- type: Call type (e.g., CALL).
- from: Sender address.
- to: Recipient or contract address.
- value: Transferred value (hex).
- gas / gasUsed: Provided and consumed gas (hex).
- input / output: Data sent and returned.
- error / revertReason: Error info, if applicable.
- calls: Nested traced calls.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": ["0x...", {"tracer": "callTracer", "tracerConfig": {"onlyTopCall": true}}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| diff_mode | boolean | |
| only_top_call | boolean | |
| timeout | string | |
| tracer | string | |
| tx_hash * | string |
eth_blockNumberCall the eth_blockNumber JSON-RPC method to retrieve the current block number.
Description: Returns the number of the most recent block.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
Returns: A hex string representing the latest block number.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
eth_callCall the eth_call JSON-RPC method to simulate a contract call without submitting a transaction.
Description: Executes a new message call immediately without creating a transaction on the blockchain.
You can also override contract storage and account values using optional state override parameters.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- from_address (str, optional): Sender address.
- to_address (str): Target contract address.
- gas (str, optional): Gas limit (hex).
- gas_price (str, optional): Gas price (hex).
- value (str, optional): Value to send (hex).
- data (str, optional): Encoded function call data.
- block (str): Block number or keyword (e.g., 'latest').
- override_address (str, optional): Address to apply state overrides to.
- override_balance (str, optional): Fake balance (hex).
- override_nonce (str, optional): Fake nonce (hex).
- override_code (str, optional): Fake EVM bytecode (hex).
- override_state (dict, optional): Full key-value storage overrides.
- override_state_diff (dict, optional): Partial key-value storage diff overrides.
Returns: Hex-encoded result of the contract method execution.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a08231..."},
"latest",
{"0x111...111": {"balance": "0xFFFF..."}}
],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block | string | |
| chain * | string | |
| data | string | |
| from_address | string | |
| gas | string | |
| gas_price | string | |
| override_address | string | |
| override_balance | string | |
| override_code | string | |
| override_nonce | string | |
| override_state | object | |
| override_state_diff | object | |
| to_address | string | |
| value | string |
eth_chainIdCall the eth_chainId JSON-RPC method to retrieve the chain ID.
Description: Returns the chain ID used by the current network.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
Returns: A hex string representing the chain ID.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
eth_estimateGasCall the eth_estimateGas JSON-RPC method to estimate the gas required to execute a transaction.
Description: Simulates a transaction to estimate the gas usage without broadcasting it. Supports optional state override.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- from_address (str, optional): Sender address.
- to_address (str): Recipient contract or account address.
- gas (str, optional): Gas limit (hex).
- gas_price (str, optional): Gas price (hex).
- value (str, optional): Value to send (hex).
- data (str, optional): Encoded method data.
- block (str, optional): Block number or keyword (e.g., 'latest').
- override_address (str, optional): Address to override state for.
- override_balance (str, optional): Fake balance for that address.
- override_nonce (str, optional): Fake nonce.
- override_code (str, optional): Fake bytecode.
- override_state (dict, optional): Complete storage override.
- override_state_diff (dict, optional): Partial storage override.
Returns: Estimated gas usage as a hex string.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [{"from": "0x...", "to": "0x...", "value": "0x..."}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block | string | |
| chain * | string | |
| data | string | |
| from_address | string | |
| gas | string | |
| gas_price | string | |
| override_address | string | |
| override_balance | string | |
| override_code | string | |
| override_nonce | string | |
| override_state | object | |
| override_state_diff | object | |
| to_address | string | |
| value | string |
eth_feeHistoryCall the eth_feeHistory JSON-RPC method to retrieve a list of historical gas fee data.
Description: Returns fee history for the last blocks to estimate EIP-1559 fee parameters.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_count (str): Number of blocks in the requested range.
- newest_block (str): Highest block number in the range.
- reward_percentiles (list[str], optional): A list of percentile values for priority fee rewards.
Returns: An object with baseFeePerGas, gasUsedRatio, and optional rewards.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": ["0x5", "latest", [10, 30, 50, 70, 90]],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_count * | string | |
| chain * | string | |
| newest_block * | string | |
| reward_percentiles | array |
eth_gasPriceCall the eth_gasPrice JSON-RPC method to retrieve the current gas price in wei.
Description: Returns the current price per gas in wei.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
Returns: A hex string of the current gas price in wei.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
eth_getBalanceCall the eth_getBalance JSON-RPC method to get the balance of an address.
Description: Returns the balance of the account of given address in wei.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- address (str): Address to check the balance of (0x-prefixed).
- block (str): Block number or keyword like 'latest', 'earliest', or 'pending'.
Returns: A hex string with the balance in wei.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| block * | string | |
| chain * | string |
eth_getBlockByHashCall the eth_getBlockByHash JSON-RPC method to get information about a block using its hash.
Description: Returns information about a block by block hash.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_hash (str): The hash of the block.
- full_tx (bool): Whether to return full transaction objects or only hashes.
Returns: A block object or null if not found.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x...", true],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_hash * | string | |
| chain * | string | |
| full_tx * | boolean |
eth_getBlockByNumberCall the eth_getBlockByNumber JSON-RPC method to get information about a block using its number.
Description: Returns information about a block by block number.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_number (str): The block number or keyword like 'latest'.
- full_tx (bool): Whether to return full transaction objects or only hashes.
Returns: A block object or null if not found.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", true],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_number * | string | |
| chain * | string | |
| full_tx * | boolean |
eth_getBlockReceiptsCall the eth_getBlockReceipts JSON-RPC method to get all transaction receipts for a block.
Description: Returns all transaction receipts for a given block.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
- block (str): Block number (hex) or keyword like 'latest', 'earliest', or 'pending'.
Returns: Array of transaction receipt objects for all transactions in the block.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"params": ["latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block * | string | |
| chain * | string |
eth_getBlockTransactionCountByHashCall the eth_getBlockTransactionCountByHash JSON-RPC method to get the number of transactions in a block by its hash.
Description: Returns the number of transactions in a block matching the given block hash.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_hash (str): The hash of the block.
Returns: A hex string with the transaction count.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByHash",
"params": ["0x..."],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_hash * | string | |
| chain * | string |
eth_getBlockTransactionCountByNumberCall the eth_getBlockTransactionCountByNumber JSON-RPC method to get the number of transactions in a block by its number.
Description: Returns the number of transactions in a block matching the given block number.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_number (str): The block number or keyword like 'latest'.
Returns: A hex string with the transaction count.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_number * | string | |
| chain * | string |
eth_getCodeCall the eth_getCode JSON-RPC method to retrieve the contract code at a given address.
Description: Returns code at a given address. Useful for identifying smart contracts.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- address (str): The address to get the code from.
- block (str): Block number or keyword like 'latest', 'earliest', or 'pending'.
Returns: A hex string containing the contract code.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": ["0x1234567890abcdef1234567890abcdef12345678", "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| block * | string | |
| chain * | string |
eth_getLogsCall the eth_getLogs JSON-RPC method to fetch logs emitted by smart contracts based on filter parameters.
Description: Returns an array of log objects that match the filter options. You can filter by address, topics, block range, and block hashes.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- from_block (str, optional): Start block number or tag (e.g., 'latest', 'earliest').
- to_block (str, optional): End block number or tag.
- address (str, optional): Address of the contract to filter logs for.
- topics (list[str], optional): List of topic filters (e.g., event signature hashes).
- block_hash (str, optional): Specific block hash to filter logs (cannot be used with fromBlock/toBlock).
Returns: An array of log objects.
Each log object includes:
- address: Address that emitted the log.
- topics: List of indexed event parameters (first topic is the event signature).
- data: Unindexed event data.
- blockNumber: Block number where the log was generated.
- transactionHash: Transaction hash that produced the log.
- transactionIndex: Index of the transaction in the block.
- blockHash: Hash of the block.
- logIndex: Index of the log in the block.
- removed: True if log was removed due to chain reorg, else False.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [{"fromBlock": "0x1", "toBlock": "latest", "address": "0x..."}],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| address | string | |
| block_hash | string | |
| chain * | string | |
| from_block | string | |
| to_block | string | |
| topics | array |
eth_getStorageAtCall the eth_getStorageAt JSON-RPC method to retrieve the value at a storage position.
Description: Returns the value from a storage position at a given address.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- address (str): The address of the storage contract.
- position (str): The hex-encoded position in storage.
- block (str): Block number or keyword like 'latest', 'earliest', or 'pending'.
Returns: The value at that storage position as a hex string.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": ["0x1234567890abcdef1234567890abcdef12345678", "0x0", "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| block * | string | |
| chain * | string | |
| position * | string |
eth_getTransactionByHashCall the eth_getTransactionByHash JSON-RPC method to get a transaction by its hash.
Description: Returns the information about a transaction requested by transaction hash.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- tx_hash (str): The hash of the transaction.
Returns: A transaction object or null if not found.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x..."],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| tx_hash * | string |
eth_getTransactionCountCall the eth_getTransactionCount JSON-RPC method to get the number of transactions sent from an address.
Description: Returns the number of transactions sent from an address (nonce).
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- address (str): The address to get the nonce for.
- block (str): Block number or keyword like 'latest', 'earliest', or 'pending'.
Returns: A hex string with the nonce.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": ["0x1234567890abcdef1234567890abcdef12345678", "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| block * | string | |
| chain * | string |
eth_getTransactionReceiptCall the eth_getTransactionReceipt JSON-RPC method to retrieve the receipt of a transaction.
Description: Returns the transaction receipt by hash. The receipt includes execution results, logs, gas usage, and other metadata.
Returns null if the transaction is not yet mined or not found.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- tx_hash (str): The hash of the transaction to query.
Returns: A transaction receipt object or null.
Returned object includes:
- blockHash: Hash of the block where the transaction was included.
- blockNumber: Block number (hex).
- contractAddress: Created contract address (if contract creation), otherwise null.
- cumulativeGasUsed: Total gas used in the block up to and including this tx (hex).
- effectiveGasPrice: Gas price paid (base + tip) per unit (hex).
- from: Sender address.
- to: Recipient address (null if contract creation).
- gasUsed: Gas used by this specific transaction (hex).
- logs: List of event logs generated by this transaction.
- logsBloom: Bloom filter for quick log retrieval.
- status: 0x1 (success) or 0x0 (failure).
- transactionHash: Hash of the transaction.
- transactionIndex: Index position within the block (hex).
- type: Transaction type identifier (e.g., '0x2').
- Each log includes: address, topics[], data, logIndex, blockNumber, blockHash, txHash, txIndex, removed.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x85d995eba9763907fdf35cd2034144dd9d53ce32cbec21349d4b12823c6860c5"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| tx_hash * | string |
eth_maxPriorityFeePerGasCall the eth_maxPriorityFeePerGas JSON-RPC method to get the suggested max priority fee per gas.
Description: Returns a suggested max priority fee per gas in wei.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
Returns: A hex string representing the priority fee per gas.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
eth_simulateV1eth_syncingformat_gas_price_in_gweiConverts gas price in Wei (hex or int string) to Gwei (decimal). Example: format_gas_price_in_gwei("0x3b9aca00") -> 1.0 format_gas_price_in_gwei("1000000000") -> 1.0| Parameter | Type | Description |
|---|---|---|
| gas_price * | string |
get_bonding_curve_dataParse bonding curve state from raw account data. This is for Pump.fun tokens on bonding curve operations. Parameters: - data (str): Base64 or hex string. - encoding (str): One of 'base64' (default) or 'hex'. Returns: Dictionary with parsed curve fields.| Parameter | Type | Description |
|---|---|---|
| data * | string | |
| encoding | string |
get_graduating_bonding_curvesReturns memcmp filters for Solana getProgramAccounts to find bonding curves that are likely close to graduation. NOTE: This is a coarse filter that may return tokens with up to ~281M tokens remaining. Additional client-side filtering recommended. Filters for: - Bonding curve discriminator - real_token_reserves with top 2 bytes = 0x00 (coarse threshold) - complete = falseget_supported_blockchainsReturns the list of blockchain names supported by the MCP server.getaccountinfoCall the getAccountInfo JSON-RPC method.
Returns detailed account information for a given public key.
Parameters:
- chain (str): Must be Solana.
- account (str): The base-58 encoded public key of the account to query.
- encoding (str, optional): Encoding format for account data. One of: 'base58', 'base64', 'base64+zstd', 'jsonParsed'.
- base58: Slow and limited to Account data less than 129 bytes.
- base64: Returns base64-encoded data for Account data of any size.
- base64+zstd: Compresses the Account data using Zstandard, then base64-encodes the result.
- jsonParsed: Attempts to use program-specific state parsers to return more human-readable and explicit account state data.
If jsonParsed is requested but a parser cannot be found, the field falls back to base64 encoding. This can be detected when the data field is a string. Default is base64.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- data_slice (dict, optional): A dictionary with optional 'offset' and 'length' integers to specify a slice of the account data.
- min_context_slot (str, optional): Minimum slot that the request can be evaluated at.
Returns: Account information object including lamports, owner, data, executable, rentEpoch, and space.
Example:
curl -X POST https://api.devnet.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAccountInfo",
"params": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
{ "encoding": "base58" }
]
}'| Parameter | Type | Description |
|---|---|---|
| account * | string | |
| chain * | string | |
| commitment | string | |
| data_slice | object | |
| encoding | string | |
| min_context_slot | string |
getbalanceCall the getBalance JSON-RPC method to retrieve the lamport balance of a given Solana account.
Parameters:
- chain (str): Must be Solana.
- account (str): The base-58 encoded public key of the account. [Example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM]
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): The minimum slot that the request can be evaluated at.
Returns: Balance of the account in lamports as a numeric value.
Example:
curl -X POST https://api.devnet.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBalance",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}'| Parameter | Type | Description |
|---|---|---|
| account * | string | |
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getblockCall the getBlock JSON-RPC method to retrieve information about a block by slot number.
Parameters:
- chain (str): Must be Solana.
- slot (int): Slot number of the block to retrieve. [Example: 378967388]
- encoding (str, optional): Encoding for returned transactions. Options:
- 'json'
- 'jsonParsed'
- 'base58'
- 'base64' (default)
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- transaction_details (str, optional): Level of transaction detail: 'full', 'accounts', 'signatures', or 'none'. Default is 'full'.
- max_supported_transaction_version (int, optional): Maximum transaction version to return. Default is 0.
- rewards (bool, optional): Whether to include rewards array. Default is True.
Returns: Block details including transactions, blockhash, parent slot, block height, and optionally rewards.
Example:
curl -X POST https://api.devnet.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlock",
"params": [
378967388,
{
"encoding": "json",
"maxSupportedTransactionVersion": 0,
"transactionDetails": "full",
"rewards": false
}
]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| encoding | string | |
| max_supported_transaction_version | integer | |
| rewards | boolean | |
| slot * | integer | |
| transaction_details | string |
getblockcommitmentCall the getBlockCommitment JSON-RPC method to retrieve the commitment for a particular block.
Parameters:
- chain (str): Must be 'solana'.
- slot (int): Slot number of the block to retrieve commitment for.
Returns: Commitment information for the specified block, including the commitment array and total stake.
Example:
curl -X POST https://api.devnet.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockCommitment",
"params": [
12345678
]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| slot * | integer |
getblockheightCall the getBlockHeight JSON-RPC method to retrieve the current block height of the node.
Parameters:
- chain (str): Must be 'solana'.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum slot at which the request can be evaluated.
Returns: The current block height.| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getblocksgetblockswithlimitCall the getBlocksWithLimit JSON-RPC method to retrieve a list of confirmed blocks starting at the given slot.
Parameters:
- chain (str): Must be 'solana'.
- start_slot (int): Start slot (inclusive).
- limit (int, optional): Limit on the number of blocks to return (max 500,000).
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
Returns: An array of confirmed block slots starting at the specified slot.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlocksWithLimit",
"params": [100000000, 3, {"commitment": "finalized"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| limit | integer | |
| start_slot * | integer |
getblocktimeCall the getBlockTime JSON-RPC method to retrieve the estimated production time of a block.
Parameters:
- chain (str): Must be 'solana'.
- slot (int): Slot number of the block.
Returns: Estimated Unix timestamp of when the block was produced.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [100000000]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| slot * | integer |
getepochinfogetfeeformessagegetfirstavailableblockCall the getFirstAvailableBlock JSON-RPC method to retrieve the lowest slot still available on the node.
Parameters:
- chain (str): Must be 'solana'.
Returns: The slot number of the first available block.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"getFirstAvailableBlock"}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
gethealthgethighestsnapshotslotCall the getHighestSnapshotSlot JSON-RPC method to retrieve the highest full and incremental snapshot slot available.
Parameters:
- chain (str): Must be 'solana'.
Returns: A JSON object with 'full' and 'incremental' slot numbers.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot"
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
getlargestaccountsgetlatestblockhashCall the getLatestBlockhash JSON-RPC method to get the most recent blockhash and last valid block height.
Parameters:
- chain (str): Must be 'solana'.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot for the blockhash.
Returns: A blockhash object with value and lastValidBlockHeight.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getLatestBlockhash",
"params": [{"commitment": "finalized"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getleaderscheduleCall the getLeaderSchedule JSON-RPC method to get the current or specified slot leader schedule.
Parameters:
- chain (str): Must be 'solana'.
- slot (int, optional): Epoch start slot.
- identity (str, optional): Validator identity to filter.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
Returns: Mapping of leader identity to assigned slot indexes.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getLeaderSchedule",
"params": [null, {"identity": "ValidatorPubkey"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| identity | string | |
| slot | integer |
getmultipleaccountsgetprogramaccountsCall the getProgramAccounts JSON-RPC method to get all accounts owned by a program.
Parameters:
- chain (str): Must be 'solana'.
- program_id (str): Base-58 encoded public key of the program. For graduating bonding curves, use `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`.
- encoding (str, optional): Data encoding. Default is 'base64'.
- commitment (str, optional): Commitment level. Default is 'confirmed'.
- filters (list, optional): List of filter objects. Each filter can be:
- memcmp filter: {'memcmp': {'offset': int, 'bytes': 'base58_string'}}
- dataSize filter: {'dataSize': int}
Example: [{'memcmp': {'offset': 0, 'bytes': '4y6pru6YvC7'}}]
Use output from get_graduating_bonding_curves() directly.
- data_slice (dict, optional): Object with 'offset' and 'length'.
- with_context (bool, optional): Whether to include response context.
Usage:
1. filters_list = get_graduating_bonding_curves() # Returns filter list
2. getprogramaccounts('solana', program_id, filters=filters_list)
Returns: Array of account info owned by the given program.| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| data_slice | object | |
| encoding | string | |
| filters | array | |
| program_id * | string | |
| with_context | boolean |
getrecentprioritizationfeesgetsignaturesforaddressCall the getSignaturesForAddress JSON-RPC method to retrieve confirmed signatures for transactions involving an address.
Parameters:
- chain (str): Must be 'solana'.
- address (str): Base-58 encoded address.
- limit (int, optional): Maximum number of results to return (max 1,000).
- before (str, optional): Start searching backward before this signature.
- until (str, optional): Search until this signature is reached.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: A list of transaction signature info objects.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getSignaturesForAddress",
"params": ["Vote111111111111111111111111111111111111111", {"limit": 10}]
}'| Parameter | Type | Description |
|---|---|---|
| address * | string | |
| before | string | |
| chain * | string | |
| commitment | string | |
| limit | integer | |
| min_context_slot | integer | |
| until | string |
getsignaturestatusesCall the getSignatureStatuses JSON-RPC method to retrieve the status of one or more transaction signatures.
Parameters:
- chain (str): Must be 'solana'.
- signatures (List[str]): List of transaction signature strings.
- search_transaction_history (bool, optional): If true, search the entire ledger.
Returns: Status information for the provided signatures.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getSignatureStatuses",
"params": [["5Zs...Qp"], {"searchTransactionHistory": true}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| search_transaction_history | boolean | |
| signatures * | array |
getslotCall the getSlot JSON-RPC method to return the current slot the node is processing.
Parameters:
- chain (str): Must be 'solana'.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: Current slot number.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getSlot"
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getslotleaderCall the getSlotLeader JSON-RPC method to get the identity of the current slot leader.
Parameters:
- chain (str): Must be 'solana'.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: The base-58 encoded public key of the current slot leader.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getSlotLeader"
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getslotleadersCall the getSlotLeaders JSON-RPC method to get the slot leaders for a range of slots.
Parameters:
- chain (str): Must be 'solana'.
- start_slot (int): Starting slot number.
- limit (int): Number of slot leaders to return.
Returns: List of validator identity public keys for each slot.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getSlotLeaders",
"params": [100000000, 10]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| limit * | integer | |
| start_slot * | integer |
getsupplygettokenaccountbalanceCall the getTokenAccountBalance JSON-RPC method to return the token balance of a specific SPL Token account.
Parameters:
- chain (str): Must be 'solana'.
- account (str): Base-58 encoded token account address.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: Token balance object with amount and decimals.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountBalance",
"params": ["AccountAddress", {"commitment": "finalized"}]
}'| Parameter | Type | Description |
|---|---|---|
| account * | string | |
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
gettokenaccountsbydelegateCall the getTokenAccountsByDelegate JSON-RPC method to get SPL Token accounts delegated to a specific address.
Parameters:
- chain (str): Must be 'solana'.
- delegate (str): Base-58 encoded public key of the delegate.
- mint (str, optional): Filter by mint address. If it's used, then program_id argument must be skipped.
- program_id (str, optional): Override default Token program. If it's used, then mint argument must be skipped.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- encoding (str, optional): Data encoding format. Options:
- 'base58'
- 'base64' (default)
- 'base64+zstd'
- 'jsonParsed'
- data_slice (dict, optional): Optional offset/length object for slicing data.
Returns: List of token accounts matching the delegate and filters.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountsByDelegate",
"params": ["DelegateAddress", {"mint": "MintAddress", "encoding": "jsonParsed"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| data_slice | object | |
| delegate * | string | |
| encoding | string | |
| mint | string | |
| program_id | string |
gettokenaccountsbyownerCall the getTokenAccountsByOwner JSON-RPC method to get all SPL Token accounts owned by a wallet.
Parameters:
- chain (str): Must be 'solana'.
- owner (str): Base-58 encoded public key of the owner.
- mint (str, optional): Filter by mint address. If it's used, then program_id argument must be skipped.
- program_id (str, optional): Override default Token program. If it's used, then mint argument must be skipped.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- encoding (str, optional): Data encoding format. Options:
- 'base58'
- 'base64' (default)
- 'base64+zstd'
- 'jsonParsed'
- data_slice (dict, optional): Optional offset/length object for slicing data.
Returns: Token accounts associated with the owner and filters.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountsByOwner",
"params": ["OwnerAddress", {"mint": "MintAddress", "encoding": "jsonParsed"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| data_slice | object | |
| encoding | string | |
| mint | string | |
| owner * | string | |
| program_id | string |
gettokenlargestaccountsCall the getTokenLargestAccounts JSON-RPC method to retrieve the top SPL Token accounts by balance for a given mint.
Parameters:
- chain (str): Must be 'solana'.
- mint (str): Base-58 encoded mint address.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
Returns: A list of the 20 largest token accounts and their balances.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTokenLargestAccounts",
"params": ["MintAddress", {"commitment": "finalized"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| mint * | string |
gettokensupplyCall the getTokenSupply JSON-RPC method to retrieve the total supply of a specified SPL Token.
Parameters:
- chain (str): Must be 'solana'.
- mint (str): Base-58 encoded mint address.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: Supply information including total amount and decimals.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTokenSupply",
"params": ["MintAddress", {"commitment": "finalized"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer | |
| mint * | string |
gettransactionCall the getTransaction JSON-RPC method to retrieve transaction details by signature.
Parameters:
- chain (str): Must be 'solana'.
- signature (str): Base-58 encoded transaction signature.
- encoding (str, optional): Encoding format: 'json', 'jsonParsed', 'base58', 'base64'. Default is base64.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- max_supported_transaction_version (int, optional): Max tx version to return. Currently, the only valid value for this parameter is 0. Setting it to 0 allows you to fetch all transactions, including both Versioned and legacy transactions.
Returns: Transaction object, optionally parsed.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTransaction",
"params": ["TransactionSignature", {"encoding": "jsonParsed"}]
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| encoding | string | |
| max_supported_transaction_version | integer | |
| signature * | string |
gettransactioncountCall the getTransactionCount JSON-RPC method to retrieve the current transaction count.
Parameters:
- chain (str): Must be 'solana'.
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- min_context_slot (int, optional): Minimum context slot.
Returns: Total number of transactions processed by the node.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getTransactionCount"
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| commitment | string | |
| min_context_slot | integer |
getversionCall the getVersion JSON-RPC method to retrieve the current version of the Solana node.
Parameters:
- chain (str): Must be 'solana'.
Returns: Node version object including 'solana-core' and 'feature-set'.
Example:
curl -X POST https://api.mainnet-beta.solana.com -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0", "id": 1, "method": "getVersion"
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
simulatetransactionCall the simulateTransaction JSON-RPC method to simulate sending a transaction without broadcasting it.
Parameters:
- chain (str): Must be 'solana'.
- transaction (str): Base64 or base58 encoded transaction string. Must contain a valid blockhash.
- encoding (str, optional): Encoding used for transaction data. Options:
- 'base64' (default)
- 'base58' (deprecated)
- commitment (str, optional): Desired commitment level (processed, confirmed or finalized). Default is finalized.
- sig_verify (bool, optional): Whether to verify signatures. Conflicts with replace_recent_blockhash.
- replace_recent_blockhash (bool, optional): Whether to replace recent blockhash with latest. Conflicts with sig_verify.
- min_context_slot (int, optional): Minimum slot at which the request can be evaluated.
- inner_instructions (bool, optional): Whether to include inner instructions in the result.
- accounts (dict, optional): Include account addresses and optional encoding. Format: {'addresses': [str], 'encoding': str}.
Returns: A simulation result object including logs, error (if any), account data, compute units used, and return data.
Example:
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "simulateTransaction",
"params": [
"BASE64_ENCODED_TX",
{
"encoding": "base64",
"sigVerify": false,
"replaceRecentBlockhash": true
}
]
}'| Parameter | Type | Description |
|---|---|---|
| accounts | object | |
| chain * | string | |
| commitment | string | |
| encoding | string | |
| inner_instructions | boolean | |
| min_context_slot | integer | |
| replace_recent_blockhash | boolean | |
| sig_verify | boolean | |
| transaction * | string |
trace_blockCall the trace_block JSON-RPC method to trace all transactions in a block by number.
Description: Replays and returns trace information for each transaction in the given block. This method works with Parity/OpenEthereum-compatible nodes.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_number (str): Block number in hex format or tag (e.g., 'latest').
Returns: A list of trace objects for each transaction, including:
- action: Object with from, to, value, gas, input, callType.
- blockHash: Hash of the block containing the transaction.
- blockNumber: Number of the block.
- error: Execution error message, if any.
- result: Execution result with:
- gasUsed: Gas consumed by the transaction.
- output: Returned value (hex).
- subtraces: Number of internal calls.
- traceAddress: Path to nested calls.
- transactionHash: Hash of the traced transaction.
- transactionPosition: Index of the transaction in the block.
- type: Type of call (e.g., 'call', 'create').
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_block",
"params": ["0xccb93d"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_number * | string | |
| chain * | string |
trace_callCall the trace_call JSON-RPC method to execute a call and return a full trace.
Description: Executes a transaction call as if it were mined in the specified block and returns a detailed execution trace.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- from_address (str, optional): Sender address.
- to_address (str): Target contract address.
- gas (str, optional): Gas limit (hex).
- gas_price (str, optional): Gas price (hex).
- value (str, optional): ETH value to send (hex).
- data (str, optional): Call data (hex).
- trace_types (list[str]): List of trace types (e.g., ['trace'], ['vmTrace', 'stateDiff']).
- block (str): Block tag or number (e.g., 'latest').
Returns: A trace result object with the following fields:
- output: Return value of the call.
- stateDiff: Changes to Ethereum state caused by the call.
- trace: List of actions performed during the call, including:
- action: {from, to, value, gas, input, callType}.
- result: {gasUsed, output}.
- subtraces: Number of sub-calls.
- traceAddress: Call path.
- type: Call type (e.g., call, create).
- vmTrace: Full virtual machine trace (if requested).
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_call",
"params": [{"to": "0x6b17...", "data": "0x70a0..."}, ["trace"], "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block | string | |
| chain * | string | |
| data | string | |
| from_address | string | |
| gas | string | |
| gas_price | string | |
| to_address | string | |
| trace_types | array | |
| value | string |
trace_callManyCall the trace_callMany JSON-RPC method to simulate multiple contract calls and return trace results for each.
Description: Executes multiple calls in the context of the same block and returns detailed traces for each.
Parameters:
- chain (str): Must be Ethereum.
- calls (list): List of objects, each with 'call' and 'trace_types' fields.
* call (dict): Contains from, to, value, gas, data, etc.
* trace_types (list[str]): e.g., ['trace'], ['vmTrace'].
- block (str): Block tag or number (e.g., 'latest').
Expected input format for `calls`:
[
{
"call": {
"from": "0x...",
"to": "0x...",
"value": "0x...",
"data": "0x..."
},
"trace_types": ["trace"]
}
]
Returns: A list of trace results per call.
Each trace includes output, stateDiff, trace actions, and vmTrace (if requested).
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_callMany",
"params": [[
{"call": {"to": "0x...", "data": "0x..."}, "trace_types": ["trace"]}
], "latest"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block * | string | |
| calls * | array | |
| chain * | string |
trace_rawTransactionCall the trace_rawTransaction JSON-RPC method to simulate and trace a raw transaction.
Description: Executes a raw, signed Ethereum transaction without broadcasting it and returns trace data based on selected trace types.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- raw_tx (str): The raw transaction data as a 0x-prefixed hex string.
- trace_types (list[str]): List of trace types to return, such as ['trace'], ['vmTrace'], or ['stateDiff'].
Returns: A list containing one trace result object with the following fields:
- output: Return data of the call (hex).
- stateDiff: State changes caused by execution.
- trace: Low-level actions with:
- action: Includes from, to, value, gas, input, callType.
- result: Contains gasUsed and output.
- subtraces: Number of internal calls.
- traceAddress: Nested call path.
- type: Call type (e.g., call, create).
- vmTrace: Full VM instruction trace, including gas cost and state transitions.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_rawTransaction",
"params": ["0xf86c...", ["trace"]],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| raw_tx * | string | |
| trace_types | array |
trace_replayBlockTransactionsCall the trace_replayBlockTransactions JSON-RPC method to replay all transactions in a block and return traces.
Description: Re-executes all transactions in the specified block and returns trace data for each transaction. Supported trace types include 'trace', 'vmTrace', and 'stateDiff'.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- block_number (str): Block number or tag (e.g., 'latest', 'pending', 'finalized').
- trace_types (list[str]): List of trace types to return, such as ['trace'], ['vmTrace'], or ['stateDiff'].
Returns: A list of trace result objects, one per transaction, each with:
- output: Hex-encoded return value of the transaction.
- stateDiff: Ethereum state changes caused by the transaction.
- trace: Sequence of low-level actions:
- action: Includes from, to, gas, input, value, callType.
- result: Contains gasUsed and output.
- traceAddress: Execution path for nested calls.
- type: Method type ('call', 'create', etc).
- vmTrace: Full EVM instruction trace with gas and stack/memory transitions (if requested).
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_replayBlockTransactions",
"params": ["0xccb93d", ["trace"]],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| block_number * | string | |
| chain * | string | |
| trace_types * | array |
trace_replayTransactionCall the trace_replayTransaction JSON-RPC method to replay a transaction and return trace data.
Description: Re-executes a mined transaction using the current state and returns detailed traces including EVM execution steps, state changes, and basic action info.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains..
- tx_hash (str): Transaction hash to replay.
- trace_types (list[str]): Types of traces to include (e.g., ['trace'], ['vmTrace', 'stateDiff']).
Returns: A trace result object with the following fields:
- output: Return value from the transaction execution.
- stateDiff: Mapping of all state changes caused by execution.
- trace: List of low-level call actions:
- action: Contains from, to, value, gas, input, callType.
- result: Contains gasUsed and output.
- traceAddress: Path to subcalls.
- type: Call type (e.g., call, create).
- vmTrace: Instruction-level trace of the EVM (if requested).
- transactionHash: The hash of the replayed transaction.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "trace_replayTransaction",
"params": ["0x3277c7...", ["trace"]],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| trace_types * | array | |
| tx_hash * | string |
web3_clientVersionCall the web3_clientVersion JSON-RPC method to retrieve the current client version of the Ethereum node.
Description: Returns the current client version of the Ethereum node.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
Returns: A string representing the Ethereum client version.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string |
web3_sha3Call the web3_sha3 JSON-RPC method to compute the Keccak-256 (not the standardized SHA3-256) hash of the provided data.
Description: Returns Keccak-256 (not the standardized SHA3-256) of the given data.
Parameters:
- chain (str): Blockchain name. Run get_supported_blockchains tool to get the list of supported blockchains.
- data (str): The data to convert into a SHA3 hash (must be a hex string with 0x prefix).
Returns: A hex string containing the SHA3 result.
Example:
curl -X POST https://nd-422-757-666.p2pify.com/key -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"method": "web3_sha3",
"params": ["0x68656c6c6f20776f726c64"],
"id": 1
}'| Parameter | Type | Description |
|---|---|---|
| chain * | string | |
| data * | string |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 89 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 41 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 2 callssrc/common/rpc.py:26, src/common/rpc.py:52
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 41 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 89 words, fetched a month ago. The original in the repository is authoritative.
Read full README