Last updated on January 1, 1970

8 min read

Method /v1/accounts/{account_hash}/resources undefined ()
connect with JSON-RPC protocol

/v1/accounts/{account_hash}/resources

info-circle-fill

Method not allowed

info-circle-fill

Gets all resources for a specified account and ledger version.

Parameters

limit -

Maximum number of resources to retrieve. Gets default page size if not provided.

ledger_version -

Ledger version. Defaults to latest if not provided.

start -

Optional cursor specifying pagination start. You can call this endpoint once without this parameter, and then use the cursor returned in the X-Aptos-Cursor header in the response.

Request

curl --location --request GET 'https://apt.getblock.io/v1/accounts/0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255/resources?limit=10' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 

Response

[
    {
        "data": {
            "authentication_key": "0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255",
            "coin_register_events": {
                "counter": "1",
                "guid": {
                    "id": {
                        "addr": "0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255",
                        "creation_num": "0"
                    }
                }
            },
            "guid_creation_num": "4",
            "key_rotation_events": {
                "counter": "0",
                "guid": {
                    "id": {
                        "addr": "0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255",
                        "creation_num": "1"
                    }
                }
            },
            "rotation_capability_offer": {
                "for": {
                    "vec": []
                }
            },
            "sequence_number": "497660",
            "signer_capability_offer": {
                "for": {
                    "vec": []
                }
            }
        },
        "type": "0x1::account::Account"
    },
    {
        "data": {
            "coin": {
                "value": "42470628935"
            },
            "deposit_events": {
                "counter": "2",
                "guid": {
                    "id": {
                        "addr": "0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255",
                        "creation_num": "2"
                    }
                }
            },
            "frozen": false,
            "withdraw_events": {
                "counter": "1",
                "guid": {
                    "id": {
                        "addr": "0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255",
                        "creation_num": "3"
                    }
                }
            }
        },
        "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
    }
]
banner icon

Start Building with GetBlock RPCs for Free