Contract Chain API (C-Chain)

eth_getAssetBalance

Method: POST

https://flr.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

Method: POST

https://flr.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": "0x5dc988d62"
}

eth_maxPriorityFeePerGas

Method: POST

https://flr.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"
}

avax.getAtomicTx

Method: POST

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

Example body (raw)

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "avax.getAtomicTx",
    "params": {
        "txID": "umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",
        "encoding": "hex"
    }
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32000,
        "message": "could not find tx umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",
        "data": null
    },
    "id": 1
}

avax.getAtomicTxStatus

Method: POST

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

Example body (raw)

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "avax.getAtomicTxStatus",
    "params": {
        "txID": "2QouvFWUbjuySRxeX5xMbNCuAaKWfbk5FeEa2JmoF85RKLk2dD"
    }
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "status": "Unknown"
    },
    "id": 1
}

avax.getUTXOs

Method: POST

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

Example body (raw)

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "avax.getUTXOs",
    "params": {
        "addresses": [
            "C-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5"
        ],
        "sourceChain": "X",
        "startIndex": {
            "address": "C-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5",
            "utxo": "22RXW7SWjBrrxu2vzDkd8uza7fuEmNpgbj58CxBob9UbP37HSB"
        },
        "encoding": "hex"
    }
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32000,
        "message": "couldn't parse address \"C-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5\": expected hrp \"flare\" but got \"avax\"",
        "data": null
    },
    "id": 1
}

avax.issueTx

Method: POST

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

Example body (raw)

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "avax.issueTx",
    "params": {
        "tx": "0x00000009de31b4d8b22991d51aa6aa1fc733f23a851a8c9400000000000186a0000000005f041280000000005f9ca900000030390000000000000001fceda8f90fcb5d30614b99d79fc4baa29307762668f16eb0259a57c2d3b78c875c86ec2045792d4df2d926c40f829196e0bb97ee697af71f5b0a966dabff749634c8b729855e937715b0e44303fd1014daedc752006011b730",
        "encoding": "hex"
    }
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32000,
        "message": "problem parsing transaction: couldn't unmarshal struct: couldn't unmarshal interface: unknown type ID 646705",
        "data": null
    },
    "id": 1
}

Last updated