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

Method: POST

https://avax.nownodes.io/ext/bc/C/rpc

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

https://avax.nownodes.io/ext/bc/C/rpc

Example body (raw)

{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"eth_baseFee",
    "params" :[]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x5d21dba00"
}

eth_maxPriorityFeePerGas

Get the priority fee needed to be included in a block.

Method: POST

https://avax.nownodes.io/ext/bc/C/rpc

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

https://avax.nownodes.io/ext/bc/C/rpc

Example body (raw)

{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"eth_getChainConfig",
    "params" :[]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "chainId": 43114,
        "homesteadBlock": 0,
        "daoForkBlock": 0,
        "daoForkSupport": true,
        "eip150Block": 0,
        "eip155Block": 0,
        "eip158Block": 0,
        "byzantiumBlock": 0,
        "constantinopleBlock": 0,
        "petersburgBlock": 0,
        "istanbulBlock": 0,
        "muirGlacierBlock": 0,
        "apricotPhase1BlockTimestamp": 1617199200,
        "apricotPhase2BlockTimestamp": 1620644400,
        "apricotPhase3BlockTimestamp": 1629813600,
        "apricotPhase4BlockTimestamp": 1632344400,
        "apricotPhase5BlockTimestamp": 1638468000,
        "apricotPhasePre6BlockTimestamp": 1662341400,
        "apricotPhase6BlockTimestamp": 1662494400,
        "apricotPhasePost6BlockTimestamp": 1662519600,
        "banffBlockTimestamp": 1666108800,
        "cortinaBlockTimestamp": 1682434800,
        "durangoBlockTimestamp": 1709740800
    }
}

Last updated