Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
pagination.key | ❌ | String | The value returned in PageResponse.next_key to begin querying the next page most efficiently. If provided, then pagination.offset is not allowed. |
pagination.offset | ❌ | Integer | A numeric offset that can be used when pagination.key is unavailable. It is less efficient than pagination.key . If provided, then pagination.key is not allowed. |
pagination.limit | ❌ | Integer | The total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
pagination.count_total | ❌ | Boolean | If set to true , the result will include a count of the total number of items available for pagination. count_total is only respected when offset is used. It is ignored when key is set. |
pagination.reverse | ❌ | Boolean | Set to true if results are to be returned in the descending order. |
/cosmos/auth/v1beta1/accounts
Result
Example
Request
curl <your-rest-endpoint>/cosmos/auth/v1beta1/accounts?pagination.limit=2 \
-X GET \
-H "accept: application/json"
Return
{
"accounts": [
{
"@type": "/cosmos.auth.v1beta1.BaseAccount",
"address": "cosmos1qqqqr2u6rfydqjkm56a7s54397vfp4kml0qdcg",
"pub_key": {
"@type": "/cosmos.crypto.secp256k1.PubKey",
"key": "AyebebYXR5iyDHdkd0KkJbvJGqgI8cpgDJxPnbUof0cF"
},
"account_number": "1441210",
"sequence": "6"
},
{
"@type": "/cosmos.auth.v1beta1.BaseAccount",
"address": "cosmos1qqqpvkm4dwn66v2zns9dn6ckw2ra0avfn3vv77",
"pub_key": {
"@type": "/cosmos.crypto.secp256k1.PubKey",
"key": "Ax8nWR1KClme/ixrtf2MY46nwq+UKYrmbFA3rUvu6ln/"
},
"account_number": "470480",
"sequence": "3"
}
],
"pagination": {
"next_key": "AAAYlERVUgwGAYKekvWJ77f51VM=",
"total": "0"
}
}