Get Assets By Authority

Fetch all the assets belonging to a specific authority. This allows paged responses in order to easily fetch a large number of records.

Request (POST)
{
    "jsonrpc": "2.0",
    "id": "123",
    "method": "getAssetsByAuthority",
    "params": [
        "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA",
        {
            "sortBy": "created",
            "sortDirection": "desc"
        },
        50,
        1,
        null,
        null
    ]
}

Parameters (Source)

NameDescription

authorityAddress

Address of the asset authority

sortBy

The Sorting Criteria: Defined as an object { sortBy: , sortDirection: }, where sortBy can be "created", "updated", "recentAction", or "none", and sortDirection can be "asc" or "desc".

limit

The maximum number of assets to retrieve.

page

The index of the "page" to retrieve.

before

Fetch assets before the given ID.

after

Fetch assets after the given ID.

Last updated