API Reference
EVM JSON-RPC
JSON-RPC API for interacting with the HyperPaxeer EVM-compatible chain.
EVM JSON-RPC API
This API lets you interact with the HyperPaxeer EVM-based client via JSON-RPC.
Chain Information
| Property | Value |
|---|---|
| Network | HyperPaxeer Network |
| Chain ID | 125 |
| Cosmos Chain ID | hyperpax_125-1 |
| Currency | PAX |
| Base Denom | ahpx |
| Bech32 Prefix | pax |
| RPC URL | https://mainnet-beta.rpc.hyperpaxeer.com/rpc |
| Block Explorer | paxscan.paxeer.app |
Connection Examples
HTTP Request
curl -X POST https://mainnet-beta.rpc.hyperpaxeer.com/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'JavaScript (ethers.js)
import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider('https://mainnet-beta.rpc.hyperpaxeer.com/rpc');
const blockNumber = await provider.getBlockNumber();Available Methods
Web3 Methods
| Method | Summary |
|---|---|
web3_clientVersion | Returns the version of the current client |
web3_sha3 | Hashes data using the Keccak-256 algorithm |
Net Methods
| Method | Summary |
|---|---|
net_listening | Determines if this client is listening for new network connections |
net_peerCount | Returns the number of peers currently connected to this client |
net_version | Returns the network ID associated with the current network |
Eth Methods
| Method | Summary |
|---|---|
eth_blockNumber | Returns the number of most recent block |
eth_call | Executes a new message call locally without creating a transaction on the blockchain |
eth_chainId | Returns the currently configured chain id |
eth_coinbase | Returns the client coinbase address |
eth_estimateGas | Returns an estimate of how much gas is necessary for a transaction |
eth_gasPrice | Returns the current price per gas in wei |
eth_getBalance | Returns balance of a given account or contract |
eth_getBlockByHash | Gets a block for a given hash |
eth_getBlockByNumber | Gets a block for a given number |
eth_getBlockTransactionCountByHash | Returns the number of transactions in a block matching the given block hash |
eth_getBlockTransactionCountByNumber | Returns the number of transactions in a block matching the given block number |
eth_getCode | Returns code at a given contract address |
eth_getFilterChanges | Polling method for a filter, returns an array of logs which occurred since last poll |
eth_getFilterLogs | Returns an array of all logs matching filter with given id |
eth_getLogs | Returns an array of all logs matching a given filter object |
eth_getProof | Returns the account and storage values of the specified account including the Merkle-proof |
eth_getRawTransactionByHash | Returns raw transaction data of a transaction with the given hash |
eth_getRawTransactionByBlockHashAndIndex | Returns raw transaction data by block hash and index |
eth_getRawTransactionByBlockNumberAndIndex | Returns raw transaction data by block number and index |
eth_getStorageAt | Gets a storage value from a contract address and position |
eth_getTransactionByBlockHashAndIndex | Returns transaction info by block hash and index |
eth_getTransactionByBlockNumberAndIndex | Returns transaction info by block number and index |
eth_getTransactionByHash | Returns transaction info by transaction hash |
eth_getTransactionCount | Returns the number of transactions sent from an address |
eth_getTransactionReceipt | Returns the receipt of a transaction by its hash |
eth_getUncleByBlockHashAndIndex | Returns uncle info by block hash and uncle index |
eth_getUncleByBlockNumberAndIndex | Returns uncle info by block number and uncle index |
eth_getUncleCountByBlockHash | Returns the number of uncles in a block by block hash |
eth_getUncleCountByBlockNumber | Returns the number of uncles in a block by block number |
eth_getWork | Returns the hash of the current block, the seedHash, and the boundary condition |
eth_hashrate | Returns the number of hashes per second the node is mining with |
eth_mining | Returns true if client is actively mining new blocks |
eth_newBlockFilter | Creates a filter to notify when a new block arrives |
eth_newFilter | Creates a filter object based on filter options to notify when state changes |
eth_newPendingTransactionFilter | Creates a filter to notify when new pending transactions arrive |
eth_pendingTransactions | Returns pending transactions from accounts this node manages |
eth_protocolVersion | Returns the current Ethereum protocol version |
eth_sendRawTransaction | Creates new message call transaction or contract creation for signed transactions |
eth_submitHashrate | Used for submitting mining hashrate |
eth_submitWork | Used for submitting a proof-of-work solution |
eth_syncing | Returns an object with data about the sync status or false |
eth_uninstallFilter | Uninstalls a filter with given id |
How is this guide?