Launch App
API Reference

ANDE API

Complete JSON-RPC API reference for interacting with ANDE Network. Standard Ethereum JSON-RPC with ANDE-specific extensions.

Endpoints

Mainnet RPC
Primary JSON-RPC endpoint
https://rpc.ande.network
WebSocket
WebSocket for subscriptions
wss://rpc.ande.network/ws
Explorer API
Blockscout REST API
https://api.ande.network/api/v2
Rate Limits
Public RPC100 requests/minute
WebSocket50 subscriptions/connection
Explorer API60 requests/minute

Need higher limits? Run your own node or contact us for enterprise access.

JSON-RPC Methods

Block Methods

eth_blockNumber
Returns the current block number

Parameters:

None

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
eth_getBlockByNumber
Returns block information by number

Parameters:

blockNumber (hex), fullTransactions (boolean)

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}'
eth_getBlockByHash
Returns block information by hash

Parameters:

blockHash, fullTransactions (boolean)

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0x...", false],"id":1}'

Transaction Methods

eth_sendRawTransaction
Submits a signed transaction

Parameters:

signedTransaction (hex)

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0x..."],"id":1}'
eth_getTransactionByHash
Returns transaction details by hash

Parameters:

transactionHash

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x..."],"id":1}'
eth_getTransactionReceipt
Returns transaction receipt by hash

Parameters:

transactionHash

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x..."],"id":1}'

Account Methods

eth_getBalance
Returns account balance in wei

Parameters:

address, blockNumber

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x...", "latest"],"id":1}'
eth_getTransactionCount
Returns the nonce for an address

Parameters:

address, blockNumber

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x...", "latest"],"id":1}'
eth_getCode
Returns contract bytecode at address

Parameters:

address, blockNumber

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0x...", "latest"],"id":1}'

Contract Methods

eth_call
Executes a call without creating a transaction

Parameters:

callObject, blockNumber

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x...","data":"0x..."},"latest"],"id":1}'
eth_estimateGas
Estimates gas needed for a transaction

Parameters:

callObject

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0x...","data":"0x..."}],"id":1}'
eth_getLogs
Returns logs matching filter criteria

Parameters:

filterObject

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock":"0x1","toBlock":"latest","address":"0x..."}],"id":1}'

Chain Methods

eth_chainId
Returns the chain ID (6174 = 0x181E)

Parameters:

None

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
eth_gasPrice
Returns the current gas price

Parameters:

None

Example:

curl -X POST https://rpc.ande.network \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'
net_version
Returns the network ID

Parameters:

None

Example:

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

Explorer REST API

Blockscout API v2
Base URL: https://api.ande.network/api/v2
GET
/stats
GET
/main-page/blocks
GET
/main-page/transactions
GET
/addresses/:hash
GET
/addresses/:hash/transactions
GET
/transactions/:hash
GET
/blocks/:number
GET
/smart-contracts/:hash

WebSocket Subscriptions

Real-time Updates
Subscribe to blockchain events via WebSocket
// Subscribe to new blocks
const ws = new WebSocket('wss://rpc.ande.network/ws');

ws.send(JSON.stringify({
  jsonrpc: '2.0',
  method: 'eth_subscribe',
  params: ['newHeads'],
  id: 1
}));

// Subscribe to pending transactions
ws.send(JSON.stringify({
  jsonrpc: '2.0',
  method: 'eth_subscribe',
  params: ['newPendingTransactions'],
  id: 2
}));

// Subscribe to logs
ws.send(JSON.stringify({
  jsonrpc: '2.0',
  method: 'eth_subscribe',
  params: ['logs', { address: '0x...' }],
  id: 3
}));

Error Codes

-32700Parse error
-32600Invalid request
-32601Method not found
-32602Invalid params
-32603Internal error
-32000Server error