Auth
Since: cosmos-sdk 0.47
address is the account address string.
GET /cosmos/auth/v1beta1/account_info/{address} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"info": {
"address": "text",
"pub_key": {
"type_url": "text",
"value": "Ynl0ZXM="
},
"account_number": "text",
"sequence": "text"
}
}
When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Since: cosmos-sdk 0.43
key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
limit is 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.
count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
GET /cosmos/auth/v1beta1/accounts HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"accounts": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
address defines the address to query for.
GET /cosmos/auth/v1beta1/accounts/{address} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"account": {
"type_url": "text",
"value": "Ynl0ZXM="
}
}
Since: cosmos-sdk 0.46.2
Deprecated, use account_id instead
id is the account number of the address to be queried. This field should have been an uint64 (like all account numbers), and will be updated to uint64 in a future version of the auth query.
account_id is the account number of the address to be queried.
Since: cosmos-sdk 0.47
GET /cosmos/auth/v1beta1/address_by_id/{id} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"account_address": "text"
}
Since: cosmos-sdk 0.46
GET /cosmos/auth/v1beta1/bech32 HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"bech32_prefix": "text"
}
Since: cosmos-sdk 0.46
GET /cosmos/auth/v1beta1/bech32/{address_bytes} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"address_string": "text"
}
Since: cosmos-sdk 0.46
GET /cosmos/auth/v1beta1/bech32/{address_string} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"address_bytes": "Ynl0ZXM="
}
Since: cosmos-sdk 0.46
GET /cosmos/auth/v1beta1/module_accounts HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"accounts": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
]
}
GET /cosmos/auth/v1beta1/module_accounts/{name} HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"account": {
"type_url": "text",
"value": "Ynl0ZXM="
}
}
GET /cosmos/auth/v1beta1/params HTTP/1.1
Host: babylon.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"params": {
"max_memo_characters": "text",
"tx_sig_limit": "text",
"tx_size_cost_per_byte": "text",
"sig_verify_cost_ed25519": "text",
"sig_verify_cost_secp256k1": "text"
}
}