EVM Specific methods
eth_getAssetBalance
Retrieves the balance of first class Avalanche Native Tokens on the C-Chain (excluding AVAX, which must be fetched with eth_getBalance
).
wss://odyssey.nownodes.io/wss
Example body (raw)
{
"jsonrpc": "2.0",
"method": "eth_getAssetBalance",
"params": [
"0x8723e5773847A4Eb5FeEDabD9320802c5c812F46",
"latest",
"3RvKBAmQnfYionFXMfW5P8TDZgZiogKbHjM8cjpu16LKAgF5T"
],
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
eth_baseFee
Get the base fee for the next block.
Method: POST
wss://odyssey.nownodes.io/wss
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"eth_baseFee",
"params" :[]
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xd88bde16e186"
}
eth_maxPriorityFeePerGas
Get the priority fee needed to be included in a block.
Method: POST
wss://odyssey.nownodes.io/wss
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"eth_maxPriorityFeePerGas",
"params" :[]
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
eth_getChainConfig
eth_getChainConfig
returns chain config. This API is enabled by default with internal-eth
namespace.
Method: POST
wss://odyssey.nownodes.io/wss
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"eth_getChainConfig",
"params" :[]
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"chainId": 131313,
"homesteadBlock": 0,
"daoForkBlock": 0,
"daoForkSupport": true,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"apricotPhase1BlockTimestamp": 0,
"apricotPhase2BlockTimestamp": 0,
"apricotPhase3BlockTimestamp": 0,
"apricotPhase4BlockTimestamp": 0,
"apricotPhase5BlockTimestamp": 0,
"apricotPhasePre6BlockTimestamp": 0,
"apricotPhase6BlockTimestamp": 0,
"apricotPhasePost6BlockTimestamp": 0,
"banffBlockTimestamp": 0,
"cortinaBlockTimestamp": 0,
"dUpgradeBlockTimestamp": 0
}
}
Last updated