Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

account/balance call to return nonce in the response #2

@qiwu7

Description

@qiwu7

Ideally we will need the account/balance call to return nonce in the metadata field of the response.

sample request

curl --location --request POST '{{rosetta-node-url}}/account/balance' \
--header 'Content-Type: application/json' \
--data-raw '{
    "network_identifier": {
        "blockchain": "Internet Computer",
        "network": "00000000001000000101"
    },
     "account_identifier": {
        "address": "291d2024be4032a6e5bc42dcfed657370c78e2b178d51001b61dab8602",
        "metadata": {}
    }
}'

response

{
    "block_identifier": {
        "index": 110,
        "hash": "7073d2a6a9aa67b31d2e1c42e2f04b35db1fd2441f0e0024bb0e3fea131326e6"
    },
    "balances": [
        {
            "value": "18446743973707956585",
            "currency": {
                "symbol": "ICP",
                "decimals": 8
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions