Skip to main content

Overview

Test Paxeer Network RPC methods in real-time. Select an example or write your own JSON-RPC request.
RPC Endpoint: https://public-rpc.paxeer.app/rpc

Chain ID

229

Currency

PAX

Common RPC Methods

eth_blockNumber

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

eth_getBalance

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

eth_gasPrice

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

eth_chainId

Returns the chain ID of the current network.
{
  "jsonrpc": "2.0",
  "method": "eth_chainId",
  "params": [],
  "id": 1
}
None
QUANTITY - Integer of the current chain ID (229 for Paxeer Network)

eth_call

Executes a new message call immediately without creating a transaction on the blockchain.
{
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [
    {
      "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
      "data": "0x..."
    },
    "latest"
  ],
  "id": 1
}
  1. Object - The transaction call object
    • from: (optional) Address - The address the transaction is sent from
    • to: Address - The address the transaction is directed to
    • gas: (optional) Integer - Gas provided for the transaction execution
    • gasPrice: (optional) Integer - Gas price provided for each paid gas
    • value: (optional) Integer - Value sent with this transaction
    • data: (optional) Data - Hash of the method signature and encoded parameters
  2. QUANTITY|TAG - Integer block number, or the string “latest”, “earliest” or “pending”
DATA - The return value of the executed contract

eth_sendTransaction

Creates new message call transaction or a contract creation.
This method requires a wallet connection to sign the transaction.
{
  "jsonrpc": "2.0",
  "method": "eth_sendTransaction",
  "params": [
    {
      "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
      "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
      "gas": "0x76c0",
      "gasPrice": "0x9184e72a000",
      "value": "0x9184e72a",
      "data": "0x..."
    }
  ],
  "id": 1
}
  1. Object - The transaction object
    • from: Address - The address the transaction is sent from
    • to: (optional) Address - The address the transaction is directed to (null for contract creation)
    • gas: (optional) Integer - Gas provided for the transaction execution
    • gasPrice: (optional) Integer - Gas price provided for each paid gas
    • value: (optional) Integer - Value sent with this transaction
    • data: Data - Compiled contract code or hash of the invoked method signature and encoded parameters
DATA, 32 Bytes - The transaction hash, or the zero hash if the transaction is not yet available

eth_getTransactionByHash

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

Using with 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
  }'

Using with JavaScript

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);

Using with Python

import requests
import json

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())

Next Steps