Additionally, paste this code immediately after the opening tag:

Data Flow Limiting

Enabled features

At Vaultody APIs, the features available in each subscription tier determine the data flow limit. Our blockchain-related API products offer a range of options, with higher subscription tiers providing more advanced features to meet your needs and preferences.

For more information on our subscription plans and pricing, please do not hesitate to contact us.

Using Pagination

Pagination The load more functionality in the Vaultody API utilizes cursor-based pagination with the "list" API methods. Top-level API resources such as addresses, vaults, and transactions support bulk fetches through these methods. The common structure of these methods includes parameters such as "limit" and "startingAfter."

The "limit" parameter is optional and specifies the number of items to be returned in the response per page, with the default value set to 50.

URL: {{base_url}}/vaults Response:

{
    "apiVersion": "2023-04-20",
    "requestId": "6579ae4c69f510b1f687c546",
    "data": {
        "limit": 50,
        "hasMore": true,
        "items": [
            {
                "backuped": false,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1699003801,
                "depositAddressesCount": 0,
                "id": "6544bd99e009a200076fac82",
                "name": "Smart Vault",
                "type": "test"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1698661749,
                "depositAddressesCount": 4,
                "id": "653f857535fe8200078c549f",
                "name": "Vault backup",
                "type": "test"
            },
            {
                "backuped": false,
                "changeAddressesCount": 0,
                "color": "#8777D9",
                "createdTimestamp": 1697699426,
                "depositAddressesCount": 0,
                "id": "6530d66294305800073395eb",
                "name": "Test_Company",
                "type": "test"
            },
            {
                "backuped": false,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1696338115,
                "depositAddressesCount": 0,
                "id": "651c10c39b34e10007ab6c5e",
                "name": "Test",
                "type": "test"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1692257607,
                "depositAddressesCount": 3,
                "id": "64ddcd472f703e0007c12bb2",
                "name": "Company",
                "type": "test"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1690895317,
                "depositAddressesCount": 3,
                "id": "64c903d55299f8000608366d",
                "name": "Test1",
                "type": "main"
            },
            {
                "backuped": false,
                "changeAddressesCount": 0,
                "color": "#00875A",
                "createdTimestamp": 1687251940,
                "depositAddressesCount": 1,
                "id": "64916be4b60080000754b32f",
                "name": "Test_Company",
                "type": "test"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1686902903,
                "depositAddressesCount": 2,
                "id": "648c18771cfbcd000773554b",
                "name": "Company",
                "type": "test"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#DE350B",
                "createdTimestamp": 1686759097,
                "depositAddressesCount": 2,
                "id": "6489e6b9e1430300073edc4b",
                "name": "Company",
                "type": "main"
            },
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00875A",
                "createdTimestamp": 1686759052,
                "depositAddressesCount": 4,
                "id": "6489e68ce1430300073edc49",
                "name": "Wallet",
                "type": "main"
            }
        ]
    }
}

If you set a limit of 1, you will get only 1 result.

URL: {{base_url}}/vaults/64463ff167ecf9000707b052/tron/addresses?limit=1 Example:

{
    "apiVersion": "2023-04-20",
    "requestId": "6579ae8d6b8fa5cb184ab4bb",
    "data": {
        "limit": 1,
        "hasMore": true,
        "items": [
            {
                "backuped": false,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1699003801,
                "depositAddressesCount": 0,
                "id": "6544bd99e009a200076fac82",
                "name": "Smart Vault",
                "type": "test"
            }
        ]
    }
}

The "startingAfter" parameter is also optional and accepts an existing object ID value. It determines the starting point for the current list and returns objects in reverse chronological order. The "startingAfter" parameter is mutually exclusive, indicating that it excludes the specified object from the list.

URL: {{base_url}}/vaults?limit=1&startingAfter=6544bd99e009a200076fac82 Response:

{
    "apiVersion": "2023-04-20",
    "requestId": "6579aff569f510b1f687c54b",
    "data": {
        "limit": 1,
        "hasMore": true,
        "items": [
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1698661749,
                "depositAddressesCount": 4,
                "id": "653f857535fe8200078c549f",
                "name": "Vault backup",
                "type": "test"
            }
        ]
    }
}

The response format includes a "hasMore" field, which is a required boolean. This field indicates whether there are additional elements available after the current set. In the provided example, the "hasMore" field is set to false, suggesting that there are no more items beyond the ones listed.

URL: {{base_url}}/vaults?limit=1&startingAfter=6544bd99e009a200076fac82 Response:

{
    "apiVersion": "2023-04-20",
    "requestId": "6579aff569f510b1f687c54b",
    "data": {
        "limit": 1,
        "hasMore": true,
        "items": [
            {
                "backuped": true,
                "changeAddressesCount": 0,
                "color": "#00A3BF",
                "createdTimestamp": 1698661749,
                "depositAddressesCount": 4,
                "id": "653f857535fe8200078c549f",
                "name": "Vault backup",
                "type": "test"
            }
        ]
    }
}

In summary, the load more functionality in Vaultody API implements cursor-based pagination, allowing users to retrieve a specified number of items per page and navigate through the list using the "startingAfter" parameter, while the "hasMore" field in the response signals the availability of more elements.

Content


Social Sharing


Vote for this Article