Skip to main content

Overview

Complete JSON-RPC API reference for Paxeer Network. All standard Ethereum methods are supported.
Endpoint: https://public-rpc.paxeer.app/rpc

Authentication

No authentication required. All API methods are publicly accessible.

Request Format

All requests follow the JSON-RPC 2.0 specification:
{
  "jsonrpc": "2.0",
  "method": "method_name",
  "params": [],
  "id": 1
}

Available Methods

eth_blockNumber

method
string
required
eth_blockNumber
Returns the number of most recent block. Parameters: None Returns: QUANTITY - Integer of the current block number
{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}

eth_getBalance

Returns the balance of the account of given address. Parameters:
address
DATA
required
20 Bytes - Address to check for balance
block
QUANTITY|TAG
required
Integer block number, or the string “latest”, “earliest” or “pending”
Returns: QUANTITY - Integer of the current balance in wei
{
  "jsonrpc": "2.0",
  "method": "eth_getBalance",
  "params": [
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    "latest"
  ],
  "id": 1
}

eth_sendTransaction

Creates new message call transaction or a contract creation. Parameters:
transaction
Object
required
Transaction object:
  • from: Address - The address the transaction is sent from
  • to: Address - (optional) The address the transaction is directed to
  • gas: QUANTITY - (optional) Gas provided for the transaction execution
  • gasPrice: QUANTITY - (optional) Gas price
  • value: QUANTITY - (optional) Value sent with this transaction
  • data: DATA - (optional) Compiled contract code or hash of invoked method
Returns: DATA, 32 Bytes - The transaction hash
{
  "jsonrpc": "2.0",
  "method": "eth_sendTransaction",
  "params": [{
    "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
    "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
    "gas": "0x76c0",
    "gasPrice": "0x9184e72a000",
    "value": "0x9184e72a",
    "data": "0x..."
  }],
  "id": 1
}

eth_call

Executes a new message call immediately without creating a transaction. Parameters:
transaction
Object
required
Transaction call object
block
QUANTITY|TAG
required
Integer block number, or the string “latest”, “earliest” or “pending”
Returns: DATA - The return value of executed contract
{
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [{
    "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
    "data": "0x..."
  }, "latest"],
  "id": 1
}

eth_getTransactionByHash

Returns information about a transaction by transaction hash. Parameters:
hash
DATA
required
32 Bytes - Hash of a transaction
Returns: Object - A transaction object, or null when no transaction was found
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByHash",
  "params": [
    "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
  ],
  "id": 1
}

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash. Parameters:
hash
DATA
required
32 Bytes - Hash of a transaction
Returns: Object - A transaction receipt object, or null
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "params": [
    "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
  ],
  "id": 1
}

eth_estimateGas

Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. Parameters:
transaction
Object
required
Transaction call object (same as eth_call)
Returns: QUANTITY - The amount of gas used
{
  "jsonrpc": "2.0",
  "method": "eth_estimateGas",
  "params": [{
    "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
    "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
    "value": "0x9184e72a"
  }],
  "id": 1
}

eth_gasPrice

Returns the current price per gas in wei. Parameters: None Returns: QUANTITY - Integer of the current gas price in wei
{
  "jsonrpc": "2.0",
  "method": "eth_gasPrice",
  "params": [],
  "id": 1
}

eth_chainId

Returns the chain ID of the current network. Parameters: None Returns: QUANTITY - Integer of the current chain ID
{
  "jsonrpc": "2.0",
  "method": "eth_chainId",
  "params": [],
  "id": 1
}
Paxeer Network Chain ID is 229 (0xe5 in hex)

Code Examples

cURL

curl -X POST https://public-rpc.paxeer.app/rpc \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_blockNumber",
    "params": [],
    "id": 1
  }'

JavaScript/TypeScript

const response = await fetch('https://public-rpc.paxeer.app/rpc', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_blockNumber',
    params: [],
    id: 1,
  }),
});

const data = await response.json();
console.log(data.result);

Python

import requests

url = 'https://public-rpc.paxeer.app/rpc'
payload = {
    'jsonrpc': '2.0',
    'method': 'eth_blockNumber',
    'params': [],
    'id': 1
}

response = requests.post(url, json=payload)
print(response.json())

Rate Limits

Currently, there are no rate limits on the public RPC endpoint. However, please be considerate and avoid excessive requests.

Error Codes

CodeMessageDescription
-32700Parse errorInvalid JSON
-32600Invalid requestJSON is not a valid request object
-32601Method not foundMethod does not exist
-32602Invalid paramsInvalid method parameters
-32603Internal errorInternal JSON-RPC error

Next Steps