cfx

cfx_gasPrice

Returns current gas price.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

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

cfx_epochNumber

Returns highest epoch number.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

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

cfx_getBalance

Returns balance of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBalance",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

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

cfx_getAdmin

Returns admin of the given contract

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getAdmin",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "CFX:TYPE.NULL:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0SFBNJM2",
    "id": 1
}

cfx_getSponsorInfo

Return sponsor information of the given contract.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getSponsorInfo",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "availableStoragePoints": "0x0",
        "sponsorBalanceForCollateral": "0x0",
        "sponsorBalanceForGas": "0x0",
        "sponsorForCollateral": "CFX:TYPE.NULL:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0SFBNJM2",
        "sponsorForGas": "CFX:TYPE.NULL:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0SFBNJM2",
        "sponsorGasBound": "0x0",
        "usedStoragePoints": "0x0"
    },
    "id": 1
}

cfx_getStakingBalance

Returns balance of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getStakingBalance",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

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

cfx_getDepositList

Returns deposit list of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getDepositList",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [],
    "id": 1
}

cfx_getVoteList

Returns vote list of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getVoteList",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [],
    "id": 1
}

cfx_getCollateralForStorage

Returns balance of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getCollateralForStorage",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

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

cfx_getCode

Returns the code at given address at given time (epoch number)

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getCode",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

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

cfx_getStorageAt

Returns storage entries from a given contract.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getStorageAt",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc",
        "0x0",
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": null,
    "id": 1
}

cfx_getStorageRoot

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getStorageRoot",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "delta": null,
        "intermediate": null,
        "snapshot": null
    },
    "id": 1
}

cfx_getBlockByHash

Returns block with given hash.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlockByHash",
    "params": [
        "0x5940250b9ae311b9b22d5b5458500631ab3d10bef2a5bf4ff896e08e634adf03",
        false
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "adaptive": false,
        "blame": "0x0",
        "blockNumber": "0xd825316",
        "custom": [
            "0x03"
        ],
        "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
        "deferredReceiptsRoot": "0x12af19d53c378426ebe08ad33e48caf3efdaaade0994770c161c0637e65a6566",
        "deferredStateRoot": "0x758c8b0584ce0f9121585186644ba0df43dbed2ac87ee44c365061da6e4b946e",
        "difficulty": "0x23a1857fefb",
        "epochNumber": "0x597271a",
        "gasLimit": "0x1c9c380",
        "gasUsed": "0x0",
        "hash": "0x5940250b9ae311b9b22d5b5458500631ab3d10bef2a5bf4ff896e08e634adf03",
        "height": "0x597271a",
        "miner": "CFX:TYPE.USER:AAMJY3ABAE3J0UD8YS0NPT38GGNUNK5R4PS2PG8VCC",
        "nonce": "0x8c0334d2715b4227",
        "parentHash": "0xcedf6846f382c87b8f8a7e6da2b08172a22763cc7bf5d6335917b9bbf55dcd64",
        "posReference": "0x4f350f6d71e5792fad892c15c0516f3df7c77af5d75a5e1ca5e82d5a131856a5",
        "powQuality": "0x2e6647107f9",
        "refereeHashes": [],
        "size": "0x0",
        "timestamp": "0x661c0af2",
        "transactions": [],
        "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
    },
    "id": 1
}

cfx_getBlockByHashWithPivotAssumption

Returns block with given hash and pivot chain assumption.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlockByHashWithPivotAssumption",
    "params": [
        "0x5940250b9ae311b9b22d5b5458500631ab3d10bef2a5bf4ff896e08e634adf03",
        false
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "Invalid params: invalid type: boolean `false`, expected a (both 0x-prefixed or not) hex string with length of 64."
    },
    "id": 1
}

cfx_getBlockByEpochNumber

Returns block with given epoch number.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x597271a",
        false
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "adaptive": false,
        "blame": "0x0",
        "blockNumber": "0xd825316",
        "custom": [
            "0x03"
        ],
        "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
        "deferredReceiptsRoot": "0x12af19d53c378426ebe08ad33e48caf3efdaaade0994770c161c0637e65a6566",
        "deferredStateRoot": "0x758c8b0584ce0f9121585186644ba0df43dbed2ac87ee44c365061da6e4b946e",
        "difficulty": "0x23a1857fefb",
        "epochNumber": "0x597271a",
        "gasLimit": "0x1c9c380",
        "gasUsed": "0x0",
        "hash": "0x5940250b9ae311b9b22d5b5458500631ab3d10bef2a5bf4ff896e08e634adf03",
        "height": "0x597271a",
        "miner": "CFX:TYPE.USER:AAMJY3ABAE3J0UD8YS0NPT38GGNUNK5R4PS2PG8VCC",
        "nonce": "0x8c0334d2715b4227",
        "parentHash": "0xcedf6846f382c87b8f8a7e6da2b08172a22763cc7bf5d6335917b9bbf55dcd64",
        "posReference": "0x4f350f6d71e5792fad892c15c0516f3df7c77af5d75a5e1ca5e82d5a131856a5",
        "powQuality": "0x2e6647107f9",
        "refereeHashes": [],
        "size": "0x0",
        "timestamp": "0x661c0af2",
        "transactions": [],
        "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
    },
    "id": 1
}

cfx_getBlockByBlockNumber

Returns block with given block number.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlockByBlockNumber",
    "params": [
        "0x597271a",
        false
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": null,
    "id": 1
}

cfx_getBestBlockHash

Returns best block hash.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

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

cfx_getNextNonce

Returns the nonce should be filled in the next sending transaction from given address at given time (epoch number)

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getNextNonce",
    "params": [
        "cfx:aamjy3abae3j0ud8ys0npt38ggnunk5r4ps2pg8vcc"
    ]
}

Example response: 200

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

cfx_sendRawTransaction

Returns the number of transaction in a block with given hash

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_sendRawTransaction",
    "params": [
        "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "Invalid parameters: raw",
        "data": "\"RlpExpectedToBeList\""
    },
    "id": 1
}

cfx_call

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_call",
    "params": [
        {
            "to": "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea"
        },
        "latest"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "Invalid params: Invalid base32 address: input 0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea error zero or multiple prefixes."
    },
    "id": 1
}

cfx_getLogs

Returns logs matching the filter provided.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [
        {
            "address": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
            "blockHash": "0x0ba4e70bd616ad0eb24e2b83c0c33c627f7d132297334dd104a866aeec96e335",
            "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd8c00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044a642340a000000000000000000000000000000000000000000000000000000000d8268fd000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000",
            "epochNumber": "0x5972ff8",
            "logIndex": "0x0",
            "topics": [
                "0x124d1efd3ac32fa6aadb7a06e066c113471e0411fb56a5079cedbc3cdf7796e4",
                "0x86e7e8a956c781cc7385cbc29fde0e737de48b73000000000000000000000000",
                "0x4ce48b7e15a6120b7dafc59ba5184085a51c05ff000000000000000000000000"
            ],
            "transactionHash": "0x046e911f925ea94c14bdda160f83cd85b0e4f885211364bb466e1af304ec145e",
            "transactionIndex": "0x0",
            "transactionLogIndex": "0x0"
        },
        {
            "address": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
            "blockHash": "0x0ba4e70bd616ad0eb24e2b83c0c33c627f7d132297334dd104a866aeec96e335",
            "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
            "epochNumber": "0x5972ff8",
            "logIndex": "0x1",
            "topics": [
                "0xbc11eabb6efd378a0a489b58a574c6e0d0403060e8a8c7b8eab45db47900edfe"
            ],
            "transactionHash": "0x046e911f925ea94c14bdda160f83cd85b0e4f885211364bb466e1af304ec145e",
            "transactionIndex": "0x0",
            "transactionLogIndex": "0x1"
        }
    ],
    "id": 1
}

cfx_getTransactionByHash

Get transaction by its hash

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getTransactionByHash",
    "params": [
        "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xaf6398e04271db131ee5146ccf0214f3d27ae754a4a0339e117572a9de30a128",
        "chainId": "0x405",
        "contractCreated": null,
        "data": "0xbea05ee35c3c1a119300669990863861a854616ecb04b463000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e462f3e739000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000a34a880000000000000000000000000000000000000000000000000000000000a34c770000000000000000000000000000000000000000000000000000000000a359fd0000000000000000000000000000000000000000000000000000000000a35c620000000000000000000000000000000000000000000000000000000000a35e6b00000000000000000000000000000000000000000000000000000000",
        "epochHeight": "0x5972e17",
        "from": "CFX:TYPE.USER:AAJH35V6MUA0YJHAP9WZDHGB7P8J9WBZNUCU9NX75X",
        "gas": "0xe4e1c0",
        "gasPrice": "0x3b9aca00",
        "hash": "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea",
        "nonce": "0x952",
        "r": "0x5ca938e900b33969e502e46ec024c01ed45460cbd62bdfa19b3c5eb3adc244d3",
        "s": "0x634720b36c67af51f4f4bb85f80448517bf4d2ec7064313f5640e83338f6707e",
        "status": "0x0",
        "storageLimit": "0x0",
        "to": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
        "transactionIndex": "0x0",
        "v": "0x1",
        "value": "0x0"
    },
    "id": 1
}

cfx_getAccountPendingInfo

Get transaction pending info by account address.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getAccountPendingInfo",
    "params": [
        "cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "localNonce": "0x973",
        "nextPendingTx": "0x4095d3c6a8f60e7ad2813302216431946f704ddab2c607d9fe2ec23fa4143e07",
        "pendingCount": "0x1",
        "pendingNonce": "0x973"
    },
    "id": 1
}

cfx_getAccountPendingTransactions

Get transaction pending info by account address.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getAccountPendingTransactions",
    "params": [
        "cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "firstTxStatus": null,
        "pendingCount": "0x0",
        "pendingTransactions": []
    },
    "id": 1
}

cfx_estimateGasAndCollateral

Return estimated gas and collateral usage.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_estimateGasAndCollateral",
    "params": [
        "cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x",
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "Invalid params: invalid type: string \"cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x\", expected struct CallRequest."
    },
    "id": 1
}

cfx_checkBalanceAgainstTransaction

Check if user balance is enough for the transaction.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_checkBalanceAgainstTransaction",
    "params": [
        "cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x",
        "cfx:aaejuaaaaaaaaaaaaaaaaaaaaaaaaaaaa2sn102vjv",
        "0x0",
        "0x0",
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "isBalanceEnough": false,
        "willPayCollateral": true,
        "willPayTxFee": true
    },
    "id": 1
}

cfx_getBlocksByEpoch

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlocksByEpoch",
    "params": [
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [
        "0x993726833d9f830b722b3bd4ad3dbe20dd6e894c06a5ff82c395bf51d41ad311",
        "0x3fd8e44bf7eea2733c993dc355fa42e9e1b724af7e028332005ae87a3f881f03"
    ],
    "id": 1
}

cfx_getSkippedBlocksByEpoch

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getSkippedBlocksByEpoch",
    "params": [
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [],
    "id": 1
}

cfx_getTransactionReceipt

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getTransactionReceipt",
    "params": [
        "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xaf6398e04271db131ee5146ccf0214f3d27ae754a4a0339e117572a9de30a128",
        "contractCreated": null,
        "epochNumber": "0x5972e1e",
        "from": "CFX:TYPE.USER:AAJH35V6MUA0YJHAP9WZDHGB7P8J9WBZNUCU9NX75X",
        "gasCoveredBySponsor": false,
        "gasFee": "0x27f7d0bdb92000",
        "gasUsed": "0x166313",
        "index": "0x0",
        "logs": [
            {
                "address": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
                "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000952000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e462f3e739000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000a34a880000000000000000000000000000000000000000000000000000000000a34c770000000000000000000000000000000000000000000000000000000000a359fd0000000000000000000000000000000000000000000000000000000000a35c620000000000000000000000000000000000000000000000000000000000a35e6b00000000000000000000000000000000000000000000000000000000",
                "topics": [
                    "0x124d1efd3ac32fa6aadb7a06e066c113471e0411fb56a5079cedbc3cdf7796e4",
                    "0xc74a1b7e6e0974e3788790cf53d941325b791163000000000000000000000000",
                    "0x5c3c1a119300669990863861a854616ecb04b463000000000000000000000000"
                ]
            },
            {
                "address": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
                "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
                "topics": [
                    "0xbc11eabb6efd378a0a489b58a574c6e0d0403060e8a8c7b8eab45db47900edfe"
                ]
            }
        ],
        "logsBloom": "0x10000000000000000000000000000000001000010880000000000000000000000000000040000800000000000000000100000000000002000000000000000000000000000000000000000000100000000000001000000000000000000000080000000000000000000000000000010002000000000000000000000000000800000001000000002000000000000000100000000000008000000000000000800000000000000040000000000000000000000000040000000001000000000000000000000000040080000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000200000000000000000000",
        "outcomeStatus": "0x0",
        "stateRoot": "0x8619a14c13f9b78ba10bb2b7a55251c81eb5208e093a63a381677cf25641df7d",
        "storageCollateralized": "0x0",
        "storageCoveredBySponsor": false,
        "storageReleased": [],
        "to": "CFX:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAA2SN102VJV",
        "transactionHash": "0x27bada662a653e8e7eed8533308190b792661becda43e25c606f7b32a9d9d6ea",
        "txExecErrorMsg": null
    },
    "id": 1
}

cfx_getAccount

Return account related states of the given account.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getAccount",
    "params": [
        "cfx:aajh35v6mua0yjhap9wzdhgb7p8j9wbznucu9nx75x"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "accumulatedInterestReturn": "0x0",
        "address": "CFX:TYPE.USER:AAJH35V6MUA0YJHAP9WZDHGB7P8J9WBZNUCU9NX75X",
        "admin": "CFX:TYPE.NULL:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0SFBNJM2",
        "balance": "0xbc90f70e6d862890",
        "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "collateralForStorage": "0x0",
        "nonce": "0x98f",
        "stakingBalance": "0x0"
    },
    "id": 1
}

cfx_getInterestRate

Returns interest rate of the given epoch.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getInterestRate",
    "params": [
        "0x597265a"
    ]
}

Example response: 200

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

cfx_getAccumulateInterestRate

Returns accumulate interest rate of the given epoch.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getAccumulateInterestRate",
    "params": [
        "0x597265a"
    ]
}

Example response: 200

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

cfx_getPoSEconomics

Returns accumulate interest rate of the given epoch.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "distributablePosInterest": "0x1591df82a83e2c7bfd",
        "lastDistributeBlock": "0xd8274b0",
        "totalPosStakingTokens": "0x1a777b9381ecea7b1200000"
    },
    "id": 1
}

cfx_getStatus

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "bestHash": "0x46a29dbb7604bcf7f0989c3782bc2616db1b44690697f47d155ecd4bbc2d8c92",
        "blockNumber": "0xd82738e",
        "chainId": "0x405",
        "epochNumber": "0x597341a",
        "ethereumSpaceChainId": "0x406",
        "latestCheckpoint": "0x5965be0",
        "latestConfirmed": "0x59733f1",
        "latestFinalized": "0x5973330",
        "latestState": "0x5973416",
        "networkId": "0x405",
        "pendingTxNumber": "0x145b3"
    },
    "id": 1
}

cfx_getBlockRewardInfo

Returns block reward information in an epoch.

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getBlockRewardInfo",
    "params": [
        "0x597341a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": [
        {
            "author": "CFX:TYPE.USER:AASBFDZZAPNJ9K33F5XUCS51RYXYAPP0YYGPY9FGH8",
            "baseReward": "0xde1dc607569fde9",
            "blockHash": "0xe9704d38ba8ecfbd1e497b75894188e2a8f5731b22cb9769375f1e6063607b90",
            "totalReward": "0xde934e83df10784",
            "txFee": "0x0"
        },
        {
            "author": "CFX:TYPE.USER:AAMGVYZHT7H1ZXDGHB9EE9W26WRZ8RD3GJ837392DP",
            "baseReward": "0xde8fe871696654b",
            "blockHash": "0x46a29dbb7604bcf7f0989c3782bc2616db1b44690697f47d155ecd4bbc2d8c92",
            "totalReward": "0xdf05ad52e8c2e95",
            "txFee": "0x0"
        }
    ],
    "id": 1
}

cfx_clientVersion

Return the client version as a string.

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "result": "conflux-rust/v2.3.2-0d7a5ae-20231214/x86_64-linux-gnu/rustc1.73.0",
    "id": 1
}

cfx_getSupplyInfo

Returns information about total token supply

Method: POST

https://cfx.nownodes.io

Example body (raw)

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

Example response: 200

{
    "jsonrpc": "2.0",
    "result": {
        "totalCirculating": "0xe562f1165b5c6752646233d",
        "totalCollateral": "0x2a5630cad2b57330d0000",
        "totalEspaceTokens": "0x909b1a3d13bb31ff265188",
        "totalIssued": "0x11bab93832bc1d41bde52355",
        "totalStaking": "0x1c932ac6f9e4893032446ab"
    },
    "id": 1
}

cfx_getPoSRewardByEpoch

Method: POST

https://cfx.nownodes.io

Example body (raw)

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "cfx_getPoSRewardByEpoch",
    "params": [
        "0x597265a"
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "result": null,
    "id": 1
}

Last updated