Skip to main content

Swagger REST API

ℹ️info

Terra's complete Swagger API documenation can be found at https://phoenix-lcd.terra.dev/swagger/.

To learn about Terra's Light Client Daemon (LCD), visit Start the light client daemon (LCD).

Cosmos SDK - Legacy REST and gRPC Gateway docs (1.0.0)

Download OpenAPI specification:Download

A REST interface for state queries, legacy transactions

Terra REST

The properties of the connected node

Information about the connected node

Responses

Response samples

Content type
application/json
{
  • "application_version": {
    },
  • "node_info": {
    }
}

Tendermint RPC

Syncing state of node

Get if the node is currently syning with other nodes

Responses

Response samples

Content type
application/json
{
  • "syncing": true
}

Get the latest block

Responses

Response samples

Content type
application/json
{
  • "block_meta": {
    },
  • "block": {
    }
}

Get a block at a certain height

path Parameters
height
required
number
Example: 1

Block height

Responses

Response samples

Content type
application/json
{
  • "block_meta": {
    },
  • "block": {
    }
}

Get the latest validator set

Responses

Response samples

Content type
application/json
{
  • "block_height": "string",
  • "validators": [
    ]
}

Get a validator set a certain height

path Parameters
height
required
number
Example: 1

Block height

Responses

Response samples

Content type
application/json
{
  • "block_height": "string",
  • "validators": [
    ]
}

Transactions

Get a Tx by hash Deprecated

Retrieve a transaction using its hash.

path Parameters
hash
required
string
Example: BCBE20E8D46758B96AE5883B792858296AC06E51435490FBDCAE25A72B3CC76B

Tx hash

Responses

Response samples

Content type
application/json
{
  • "hash": "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656",
  • "height": 368,
  • "tx": {
    },
  • "result": {
    }
}

Search transactions Deprecated

Search transactions by events.

query Parameters
message.action
string
Example: message.action=send

transaction events such as 'message.action=send' which results in the following endpoint: 'GET /txs?message.action=send'. note that each module documents its own events. look for xx_events.md in the corresponding cosmos-sdk/docs/spec directory

message.sender
string
Example: message.sender=terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

transaction events with sender: 'GET /txs?message.action=send&message.sender=terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv'

page
integer
Example: page=1

Page number

limit
integer
Example: limit=1

Maximum number of items per page

tx.minheight
integer
Example: tx.minheight=25

transactions on blocks with height greater or equal this value

tx.maxheight
integer
Example: tx.maxheight=800000

transactions on blocks with height less than or equal this value

Responses

Response samples

Content type
application/json
{
  • "total_count": 1,
  • "count": 1,
  • "page_number": 1,
  • "page_total": 1,
  • "limit": 30,
  • "txs": [
    ]
}

Broadcast a signed tx Deprecated

Broadcast a signed tx to a full node

Request Body schema: application/json

The tx must be a signed StdTx. The supported broadcast modes include "block"(return after tx commit), "sync"(return afer CheckTx) and "async"(return right away).

object
mode
string
sequences
Array of strings
fee_granter
string

bech32 encoded address

Responses

Request samples

Content type
application/json
{
  • "tx": {
    },
  • "mode": "block",
  • "sequences": [
    ],
  • "fee_granter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Response samples

Content type
application/json
{
  • "check_tx": {
    },
  • "deliver_tx": {
    },
  • "hash": "EE5F3404034C524501629B56E0DDC38FAD651F04",
  • "height": 0
}

Encode a legacy transaction to the Proto wire format Deprecated

Encode a legacy transaction (signed or not) from JSON to base64-encoded Proto serialized bytes

Request Body schema: application/json

The tx to encode

object
sequences
Array of strings
fee_granter
string

bech32 encoded address

Responses

Request samples

Content type
application/json
{
  • "tx": {
    },
  • "sequences": [
    ],
  • "fee_granter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Response samples

Content type
application/json
{
  • "tx": "The base64-encoded Proto-serialized bytes for the tx"
}

Decode a transaction from the Amino wire format Deprecated

Decode a transaction (signed or not) from base64-encoded Amino serialized bytes to JSON

Request Body schema: application/json

The tx to decode

tx
string

Responses

Request samples

Content type
application/json
{
  • "tx": "SvBiXe4KPqijYZoKFFHEzJ8c2HPAfv2EFUcIhx0yPagwEhTy0vPA+GGhCEslKXa4Af0uB+mfShoMCgVzdGFrZRIDMTAwEgQQwJoM"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Bank

Get the account balances Deprecated

path Parameters
address
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Account address in bech32 format

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Send coins from one account to another Deprecated

path Parameters
address
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Account address in bech32 format

Request Body schema: application/json

The sender and tx information

object
Array of objects

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "coins": [
    ]
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Total supply of coins in the chain Deprecated

Responses

Response samples

Content type
application/json
{
  • "total": [
    ]
}

Total supply of a single coin denomination Deprecated

path Parameters
denomination
required
string
Example: uluna

Coin denomination

Responses

Response samples

Content type
application/json
"string"

Auth

Get the account information on blockchain Deprecated

path Parameters
address
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Account address

Responses

Response samples

Content type
application/json
{
  • "type": "cosmos-sdk/Account",
  • "value": {
    }
}

Staking

Get all delegations from a delegator Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Submit delegation Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Request Body schema: application/json

Delegate an amount of liquid coins to a validator

object
delegator_address
string

bech32 encoded address

validator_address
string

bech32 encoded address

object

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "validator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "amount": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query the current delegation between a delegator and a validator Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
{
  • "delegation": {
    },
  • "balance": {
    }
}

Get all unbonding delegations from a delegator Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Submit an unbonding delegation Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Request Body schema: application/json

Unbond an amount of bonded shares from a validator

object
delegator_address
string

bech32 encoded address

validator_address
string

bech32 encoded address

object

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "validator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "amount": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query all unbonding delegations between a delegator and a validator Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
{
  • "delegator_address": "string",
  • "validator_address": "string",
  • "entries": [
    ]
}

Get all redelegations (filter by query params) Deprecated

query Parameters
delegator
string

Bech32 AccAddress of Delegator

validator_from
string

Bech32 ValAddress of SrcValidator

validator_to
string

Bech32 ValAddress of DstValidator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Submit a redelegation Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Request Body schema: application/json

The sender and tx information

object
delegator_address
string

bech32 encoded address

validator_src_address
string

bech32 encoded address

validator_dst_address
string

bech32 encoded address

Array of objects

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "delegator_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "validator_src_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "validator_dst_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "amount": [
    ]
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query all validators that a delegator is bonded to Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Query a validator that a delegator is bonded to Deprecated

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 ValAddress of Delegator

Responses

Response samples

Content type
application/json
{
  • "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "consensus_pubkey": {
    },
  • "jailed": true,
  • "status": 0,
  • "tokens": "string",
  • "delegator_shares": "string",
  • "description": {
    },
  • "bond_height": "0",
  • "bond_intra_tx_counter": 0,
  • "unbonding_height": "0",
  • "unbonding_time": "1970-01-01T00:00:00Z",
  • "commission": {
    }
}

Get all validator candidates. By default it returns only the bonded validators. Deprecated

query Parameters
status
string
Example: status=bonded

The validator bond status. Must be either 'bonded', 'unbonded', or 'unbonding'.

page
integer
Example: page=1

The page number.

limit
integer
Example: limit=1

The maximum number of items per page.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Query the information from a single validator Deprecated

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
{
  • "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "consensus_pubkey": {
    },
  • "jailed": true,
  • "status": 0,
  • "tokens": "string",
  • "delegator_shares": "string",
  • "description": {
    },
  • "bond_height": "0",
  • "bond_intra_tx_counter": 0,
  • "unbonding_height": "0",
  • "unbonding_time": "1970-01-01T00:00:00Z",
  • "commission": {
    }
}

Get all delegations from a validator Deprecated

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get all unbonding delegations from a validator Deprecated

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get the current state of the staking pool Deprecated

Responses

Response samples

Content type
application/json
{
  • "bonded_tokens": "string",
  • "not_bonded_tokens": "string"
}

Get the current staking parameter values Deprecated

Responses

Response samples

Content type
application/json
{
  • "unbonding_time": "string",
  • "max_validators": 0,
  • "max_entries": 0,
  • "historical_entries": 0,
  • "bond_denom": "string"
}

Slashing

Get sign info of given all validators Deprecated

Get sign info of all validators

query Parameters
page
required
integer
Example: page=1

Page number

limit
required
integer
Example: limit=5

Maximum number of items per page

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Unjail a jailed validator Deprecated

Send transaction to unjail a jailed validator

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 validator address

Request Body schema: application/json
object
msg
Array of strings
object
memo
string
object

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Get the current slashing parameters Deprecated

Responses

Response samples

Content type
application/json
{
  • "signed_blocks_window": "string",
  • "min_signed_per_window": "string",
  • "downtime_jail_duration": "string",
  • "slash_fraction_double_sign": "string",
  • "slash_fraction_downtime": "string"
}

Governance

Submit a proposal Deprecated

Send transaction to submit a proposal

Request Body schema: application/json

valid value of "proposal_type" can be "text", "parameter_change", "software_upgrade"

object
title
string
description
string
proposal_type
string
proposer
string

bech32 encoded address

Array of objects

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "title": "string",
  • "description": "string",
  • "proposal_type": "text",
  • "proposer": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "initial_deposit": [
    ]
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query proposals Deprecated

Query proposals information with parameters

query Parameters
voter
string

voter address

depositor
string

depositor address

status
string

proposal status, valid values can be "deposit_period", "voting_period", "passed", "rejected"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Generate a parameter change proposal transaction Deprecated

Generate a parameter change proposal transaction

Request Body schema: application/json

The parameter change proposal body that contains all parameter changes

object
title
string
description
string
proposer
string

bech32 encoded address

Array of objects
Array of objects

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "title": "string",
  • "description": "string",
  • "proposer": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "deposit": [
    ],
  • "changes": [
    ]
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query a proposal Deprecated

Query a proposal by id

path Parameters
proposalId
required
string
Example: 2

Responses

Response samples

Content type
application/json
{
  • "id": "1",
  • "content": {
    },
  • "status": 0,
  • "final_tally_result": {
    },
  • "total_deposit": [
    ],
  • "submit_time": "string",
  • "deposit_end_time": "string",
  • "voting_start_time": "string",
  • "voting_end_time": "string"
}

Query proposer Deprecated

Query for the proposer for a proposal

path Parameters
proposalId
required
string
Example: 2

Responses

Response samples

Content type
application/json
{
  • "proposal_id": "string",
  • "proposer": "string"
}

Query deposits Deprecated

Query deposits by proposalId

path Parameters
proposalId
required
string
Example: 2

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Deposit tokens to a proposal Deprecated

Send transaction to deposit tokens to a proposal

path Parameters
proposalId
required
string
Example: 2

proposal id

Request Body schema: application/json
object
depositor
string

bech32 encoded address

Array of objects

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "depositor": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "amount": [
    ]
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query deposit Deprecated

Query deposit by proposalId and depositor address

path Parameters
proposalId
required
string
Example: 2

proposal id

depositor
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 depositor address

Responses

Response samples

Content type
application/json
{
  • "amount": [
    ],
  • "proposal_id": "string",
  • "depositor": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Query voters Deprecated

Query voters information by proposalId

path Parameters
proposalId
required
string
Example: 2

proposal id

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Vote a proposal Deprecated

Send transaction to vote a proposal

path Parameters
proposalId
required
string
Example: 2

proposal id

Request Body schema: application/json

valid value of "option" field can be "yes", "no", "no_with_veto" and "abstain"

object
voter
string

bech32 encoded address

option
string

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "voter": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "option": "yes"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query vote Deprecated

Query vote information by proposal Id and voter address

path Parameters
proposalId
required
string
Example: 2

proposal id

voter
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 voter address

Responses

Response samples

Content type
application/json
{
  • "voter": "string",
  • "proposal_id": "string",
  • "options": [
    ]
}

Get a proposal's tally result at the current time Deprecated

Gets a proposal's tally result at the current time. If the proposal is pending deposits (i.e status 'DepositPeriod') it returns an empty tally result.

path Parameters
proposalId
required
string
Example: 2

proposal id

Responses

Response samples

Content type
application/json
{
  • "yes": "0.0000000000",
  • "abstain": "0.0000000000",
  • "no": "0.0000000000",
  • "no_with_veto": "0.0000000000"
}

Query governance deposit parameters Deprecated

Query governance deposit parameters. The max_deposit_period units are in nanoseconds.

Responses

Response samples

Content type
application/json
{
  • "min_deposit": [
    ],
  • "max_deposit_period": "86400000000000"
}

Query governance tally parameters Deprecated

Query governance tally parameters

Responses

Response samples

Content type
application/json
{
  • "threshold": "0.5000000000",
  • "quorum": "0.3340000000",
  • "veto_threshold": "0.3340000000"
}

Query governance voting parameters Deprecated

Query governance voting parameters. The voting_period units are in nanoseconds.

Responses

Response samples

Content type
application/json
{
  • "voting_period": "86400000000000"
}

Distribution

Get the total rewards balance from all delegations Deprecated

Get the sum of all the rewards earned by delegations by a single delegator

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Responses

Response samples

Content type
application/json
{
  • "rewards": [
    ],
  • "total": [
    ]
}

Withdraw all the delegator's delegation rewards Deprecated

Withdraw all the delegator's delegation rewards

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Request Body schema: application/json
object
from
string

Sender address or Keybase name to generate a transaction

memo
string
chain_id
string
account_number
string
sequence
string
gas
string
gas_adjustment
string
Array of objects
simulate
boolean

Estimate gas for a transaction (cannot be used in conjunction with generate_only)

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query a delegation reward Deprecated

Query a single delegation reward by a delegator

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Withdraw a delegation reward Deprecated

Withdraw a delegator's delegation reward from a single validator

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Request Body schema: application/json
object
from
string

Sender address or Keybase name to generate a transaction

memo
string
chain_id
string
account_number
string
sequence
string
gas
string
gas_adjustment
string
Array of objects
simulate
boolean

Estimate gas for a transaction (cannot be used in conjunction with generate_only)

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Get the rewards withdrawal address Deprecated

Get the delegations' rewards withdrawal address. This is the address in which the user will receive the reward funds

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Responses

Response samples

Content type
application/json
"terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"

Replace the rewards withdrawal address Deprecated

Replace the delegations' rewards withdrawal address for a new one.

path Parameters
delegatorAddr
required
string
Example: terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv

Bech32 AccAddress of Delegator

Request Body schema: application/json
object
withdraw_address
string

bech32 encoded address

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "withdraw_address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Validator distribution information Deprecated

Query the distribution information of a single validator

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
{
  • "operator_address": "terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l",
  • "self_bond_rewards": [
    ],
  • "val_commission": {
    }
}

Fee distribution outstanding rewards of a single validator Deprecated

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
{
  • "rewards": [
    ]
}

Commission and self-delegation rewards of a single validator Deprecated

Query the commission and self-delegation rewards of validator.

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Withdraw the validator's rewards Deprecated

Withdraw the validator's self-delegation and commissions rewards

path Parameters
validatorAddr
required
string
Example: terravaloper1wg2mlrxdmnnkkykgqg4znky86nyrtc45q7a85l

Bech32 OperatorAddress of validator

Request Body schema: application/json
object
from
string

Sender address or Keybase name to generate a transaction

memo
string
chain_id
string
account_number
string
sequence
string
gas
string
gas_adjustment
string
Array of objects
simulate
boolean

Estimate gas for a transaction (cannot be used in conjunction with generate_only)

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    }
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Community pool parameters Deprecated

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Fee distribution parameters Deprecated

Responses

Response samples

Content type
application/json
{
  • "base_proposer_reward": "string",
  • "bonus_proposer_reward": "string",
  • "community_tax": "string"
}

Mint

Minting module parameters Deprecated

Responses

Response samples

Content type
application/json
{
  • "mint_denom": "string",
  • "inflation_rate_change": "string",
  • "inflation_max": "string",
  • "inflation_min": "string",
  • "goal_bonded": "string",
  • "blocks_per_year": "string"
}

Current minting inflation value Deprecated

Responses

Response samples

Content type
application/json
"string"

Current minting annual provisions value Deprecated

Responses

Response samples

Content type
application/json
"string"

Wasm

Generate wasm store code message Deprecated

Request Body schema: application/json
object
wasm_bytes
string

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "wasm_bytes": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

List CodeInfos Deprecated

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Instantiate wasm contract Deprecated

path Parameters
codeID
required
number

code ID you want to instantiate

Request Body schema: application/json
object
label
string

string contract label

Array of objects
msg
string

base64 encoded binary msg

admin
string

bech32 encoded address

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "label": "string",
  • "deposit": [
    ],
  • "msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH",
  • "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Get code info of the code ID Deprecated

path Parameters
codeID
required
number

code ID you want to instantiate

Responses

Response samples

Content type
application/json
{
  • "data": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH",
  • "code_info": {
    }
}

Query list contracts which are using the codeID Deprecated

path Parameters
codeID
required
string

code ID you want to query

Responses

Response samples

Content type
application/json
[
  • "string"
]

Execute wasm contract message Deprecated

path Parameters
contractAddr
required
string

contract address you want to execute

Request Body schema: application/json
object
Array of objects
exec_msg
string

base64 encoded binary msg

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "coins": [
    ],
  • "exec_msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Get contract info of the contract Address Deprecated

path Parameters
contractAddr
required
string

contract address you want to execute

Responses

Response samples

Content type
application/json
{
  • "address": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "contract_info": {
    }
}

Migrate wasm contract to new code base Deprecated

path Parameters
contractAddr
required
string

contract address you want to migrate

Request Body schema: application/json
object
admin
string

bech32 encoded address

code_id
number <integer>
msg
string

base64 encoded binary msg

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv",
  • "code_id": 10,
  • "msg": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Update wasm contract admin to new address Deprecated

path Parameters
contractAddr
required
string

contract address you want to update admin

Request Body schema: application/json
object
admin
string

bech32 encoded address

Responses

Request samples

Content type
application/json
{
  • "base_req": {
    },
  • "admin": "terra1wg2mlrxdmnnkkykgqg4znky86nyrtc45q336yv"
}

Response samples

Content type
application/json
{
  • "msg": [
    ],
  • "fee": {
    },
  • "memo": "string",
  • "signature": {
    }
}

Query all contract state Deprecated

path Parameters
contractAddr
required
string

contract address you want to lookup

Responses

Response samples

Content type
application/json
[
  • { }
]

Get stored information with query msg Deprecated

path Parameters
contractAddr
required
string

contract address you want to lookup

query
required
string
Example: 7B7D

hex encoded json string

Responses

Response samples

Content type
application/json
"string"

Get stored information with store key Deprecated

path Parameters
contractAddr
required
string

contract address you want to lookup

key
required
string

hex encoded raw key to access

Responses

Response samples

Content type
application/json
"string"

Get contact historical infos Deprecated

path Parameters
contractAddr
required
string

contract address you want to lookup

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Query

Accounts returns all the existing accounts

Since: cosmos-sdk 0.43

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Account returns account details based on address.

path Parameters
address
required
string

address defines the address to query for.

Responses

Params queries all parameters.

Responses

Returns list of `Authorization`, granted to the grantee by the granter.

query Parameters
granter
string
grantee
string
msg_type_url
string

Optional, msg_type_url, when set, will query only grants matching given msg type.

pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

GranteeGrants returns a list of `GrantAuthorization` by grantee.

Since: cosmos-sdk 0.45.2

path Parameters
grantee
required
string
query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

GranterGrants returns list of `GrantAuthorization`, granted by granter.

Since: cosmos-sdk 0.45.2

path Parameters
granter
required
string
query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

AllBalances queries the balance of all coins for a single account.

path Parameters
address
required
string

address is the address to query balances for.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Balance queries the balance of a single coin for a single account.

path Parameters
address
required
string

address is the address to query balances for.

query Parameters
denom
string

denom is the coin denom to query balances for.

Responses

DenomsMetadata queries the client metadata for all registered coin denominations.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

DenomsMetadata queries the client metadata of a given coin denomination.

path Parameters
denom
required
string

denom is the coin denom to query the metadata for.

Responses

Params queries the parameters of x/bank module.

Responses

SpendableBalances queries the spenable balance of all coins for a single account.

path Parameters
address
required
string

address is the address to query spendable balances for.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

TotalSupply queries the total supply of all coins.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

SupplyOf queries the supply of a single coin.

path Parameters
denom
required
string

denom is the coin denom to query balances for.

Responses

CommunityPool queries the community pool coins.

Responses

DelegationTotalRewards queries the total rewards accrued by a each validator.

path Parameters
delegator_address
required
string

delegator_address defines the delegator address to query for.

Responses

DelegationRewards queries the total rewards accrued by a delegation.

path Parameters
delegator_address
required
string

delegator_address defines the delegator address to query for.

validator_address
required
string

validator_address defines the validator address to query for.

Responses

DelegatorValidators queries the validators of a delegator.

path Parameters
delegator_address
required
string

delegator_address defines the delegator address to query for.

Responses

DelegatorWithdrawAddress queries withdraw address of a delegator.

path Parameters
delegator_address
required
string

delegator_address defines the delegator address to query for.

Responses

Params queries params of the distribution module.

Responses

ValidatorCommission queries accumulated commission for a validator.

path Parameters
validator_address
required
string

validator_address defines the validator address to query for.

Responses

ValidatorOutstandingRewards queries rewards of a validator address.

path Parameters
validator_address
required
string

validator_address defines the validator address to query for.

Responses

ValidatorSlashes queries slash events of a validator.

path Parameters
validator_address
required
string

validator_address defines the validator address to query for.

query Parameters
starting_height
string <uint64>

starting_height defines the optional starting height to query the slashes.

ending_height
string <uint64>

starting_height defines the optional ending height to query the slashes.

pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

AllEvidence queries all evidence.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Evidence queries evidence based on evidence hash.

path Parameters
evidence_hash
required
string <byte>

evidence_hash defines the hash of the requested evidence.

Responses

Allowance returns fee granted to the grantee by the granter.

path Parameters
granter
required
string

granter is the address of the user granting an allowance of their funds.

grantee
required
string

grantee is the address of the user being granted an allowance of another user's funds.

Responses

Allowances returns all the grants for address.

path Parameters
grantee
required
string
query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

AllowancesByGranter returns all the grants given by an address Since v0.46

path Parameters
granter
required
string
query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Params queries all parameters of the gov module.

path Parameters
params_type
required
string

params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".

Responses

Proposals queries all proposals based on given status.

query Parameters
proposal_status
string
Default: "PROPOSAL_STATUS_UNSPECIFIED"
Enum: "PROPOSAL_STATUS_UNSPECIFIED" "PROPOSAL_STATUS_DEPOSIT_PERIOD" "PROPOSAL_STATUS_VOTING_PERIOD" "PROPOSAL_STATUS_PASSED" "PROPOSAL_STATUS_REJECTED" "PROPOSAL_STATUS_FAILED"

proposal_status defines the status of the proposals.

  • PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
  • PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
  • PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
  • PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has passed.
  • PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has been rejected.
  • PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
voter
string

voter defines the voter address for the proposals.

depositor
string

depositor defines the deposit addresses from the proposals.

pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Proposal queries proposal details based on ProposalID.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

Responses

Deposits queries all deposits of a single proposal.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Deposit queries single deposit information based proposalID, depositAddr.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

depositor
required
string

depositor defines the deposit addresses from the proposals.

Responses

TallyResult queries the tally of a proposal vote.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

Responses

Votes queries votes of a given proposal.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

Vote queries voted information based on proposalID, voterAddr.

path Parameters
proposal_id
required
string <uint64>

proposal_id defines the unique id of the proposal.

voter
required
string

voter defines the oter address for the proposals.

Responses

AnnualProvisions current minting annual provisions value.

Responses

Inflation returns the current minting inflation value.

Responses

Params returns the total set of minting parameters.

Responses

Params queries a specific parameter of a module, given its subspace and key.

query Parameters
subspace
string

subspace defines the module to query the parameter for.

key
string

key defines the key of the parameter in the subspace.

Responses

Params queries the parameters of slashing module

Responses

SigningInfos queries signing info of all validators

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

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.

pagination.reverse
boolean <boolean>

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses

SigningInfo queries the signing info of given cons address

path Parameters
cons_address
required
string

cons_address is the address to query signing info of

Responses

DelegatorDelegations queries all delegations of a given delegator address.

path Parameters
delegator_addr
required
string

delegator_addr defines the delegator address to query for.

query Parameters
pagination.key
string <byte>

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.

pagination.offset
string <uint64>

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.

pagination.limit
string <uint64>

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.

pagination.count_total
boolean <boolean>

count_total i