Account Methods

hmy_getBalanceByBlockNumber

Get the balance of an address at a given block.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "hmyv2_getBalanceByBlockNumber",
    "params": [
        "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
        56993494
    ]
}

Example response: 200

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

hmy_getTransactionCount

Given an account address, returns the number of transactions the account has made.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getTransactionCount",
    "params": [
        "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
        56993494
    ],
    "id": 1
}

Example response: 200

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

hmy_getBalance

Get latest balance of an address.

Method: POST

https://one.nownodes.io

Example body (raw)

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

Example response: 200

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

Last updated