RPC
Overview
A JSON-RPC endpoint defines the methods for which you can retrieve data from a node. A node is a participant in the network that stores and serves the latest blockchain state. You can either Get Started or Get Started
API Documentation
This API is provided for developers transitioning their applications from Etherscan to the Palm Network Block Explorer. It supports GET and POST requests.
Example Queries
| Query |
Account Data | ?module=account |
Logs | ?module=logs |
Token | ?module=token |
Stats | ?module=stats |
Block | ?module=block |
Contract | ?module=contract |
Transaction | ?module=transaction |
Note that the data queries below are available for both the Testnet and Mainnet.
Account Data
Example
Mimics Ethereum JSON RPC's eth_getBalance. Returns the balance as of the provided block (defaults to latest)
Retrievable Data | Details |
eth_get_balance | Mimics Ethereum JSON RPC's eth_getBalance. Returns the balance as of the provided block (defaults to latest). |
balance | Get balance for address. |
balancemulti | Get balance for multiple addresses. |
pendingtxlist | Get pending transactions by address. |
txlist | Get transactions by address. |
txlistinternal | Get internal transactions by transaction or address hash. |
tokentx | Get token transfer events by address. |
tokenbalance | Get token account balance for token contract address. |
tokenlist | Get list of tokens owned by address. |
getminedblocks | Get list of blocks mined by address. |
listaccounts | Get a list of accounts and their balances, sorted ascending by the time they were first seen by the explorer. |
Logs
Example
Get event logs for an address and/or topics. Up to a maximum of 1,000 event logs.
Retrievable Data | Details |
getLogs | Get event logs for an address and/or topics. |
Block
Example
Get block reward by block number.
Retrievable Data | Details |
getblockreward | Get block reward by block number. |
getblocknobytime | Get Block Number by Timestamp. |
eth_block_number | Mimics Ethereum JSON RPC's eth_blockNumber. Returns the lastest block number |
Contract
The contract API endpoints allow you to verify contracts or get data associated with verified contracts, such as the ABI or source code.
Examples
Get a list of contracts, sorted ascending by the time they were first seen by the explorer. If you provide the filters not_decompiled(4) or not_verified(4) the results will not be sorted for performance reasons.
Verify a vyper contract with its source code and contract creation information.
Action | Details |
listcontracts | Get a list of contracts |
getabi | Get ABI for verified contract. |
getsourcecode | Get contract source code for verified contract. |
verify | Verify a contract with its source code and contract creation information. |
verify_via_sourcify | Verify a contract through Using Sourcify |
verify_vyper_contract | Get Verify a vyper contract with its source code and contract creation information. source code for verified contract. |
verifysourcecode | Verify a contract with Standard input JSON file. Its interface the same as Etherscan's API endpoint |
checkverifystatus | Return status of the verification attempt (works in addition to verifysourcecode method) Return status of the verification attempt (works in addition to verifysourcecode method) Return status of the verification attempt (works in addition to verifysourcecode method) Return status of the verification attempt (works in addition to verifysourcecode method) |
Transaction
Example
Get internal transactions by transaction or address hash. Up to a maximum of 10,000 internal transactions. Also available through a GraphQL transaction query.
Retrievable Data | Details |
gettxinfo | Get transaction info. |
gettxreceiptstatus | Get transaction receipt status. Also available through a GraphQL 'transaction' query. |
getstatus | Get error status and error message. |
🏁 Additional Resources
- Get Started
- Connect to Palm network