Blockchain API
no
Return a JSON object, the structure is as follows:
- jsonrpc: JSONRPC Version, fixed as "2.0"
- id: ID number of API request
- result: Result object
- response: Response result
- data: Application information
- last_block_height: Highest block
- ast_block_app_hash: Last block application hash
request:
response:
height - The height of the block to be queried, int64, optional, default value: 0, which means the latest block
Return a JSON object, the structure is as follows:
- block_hash: Block hash
- block: Block information
- header: Block header
- version: Block version
- block: The version number of the block
- app: app version number
- chain_id: ID number of the chain
- height: Block height
- round_received: Receive round
- last_block_id: Previous block
- hash: Block hash
- timestamp: time
- validators_hash: Validator hash
- next_validators_hash: Next validator hash
- consensus_hash: Consensus hash
- last_results_hash: The result of the previous hash
- frame_hash: Hash in consensus state
- txs_hash: txs hash
- app_hash: app hash
- receipts_hash: Receiver's hash
- txs: Transaction set
- receipts:Recipient
- validator: Verifier
- event_cnt: number of events
- tx_cnt: tx number
- signatures: Signature information
- validator: Verifier
- sig: Signature information
request:
response:
height - The height of the block to be queried, int64, optional, default value: 0, which means the latest block
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- error:Error description information
- result:Application information results
request:
response:
minHeight - Starting block height maxHeight - Cutoff block height
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- error:Error description information
- result:Application information results
request:
response:
TODO
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result object
- block_height: Block height
- consensus_params: Consensus parameters
- event: event max_bytes: Event size time_iota_ms: Minimum time unit
- validator: Verifier pub_key_types: Digital signature algorithm for verifier's public key
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result Height
- round_state:
- height: Block height
- priv_validator: Verifier private key
- validators_set: Validator set
- validators: List of validators
- address: Verifier address
- pub_key: Verifier public key type: Digital signature algorithm for verifier's public key value: Public key
- voting_power: Voting rights
- proposer_priority: Applicant's priority
- proposer: Proposer
- address: Proposer address
- pub_key: Proposer public key type: Digital signature algorithm of proponent's public key value: Public key
- voting_power: Voting rights
- proposer_priority: Applicant's priority
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: result
- genesis: Founding Information
- genesis_time: time
- chain_id: Chain ID number
- consensus_params: Consensus parameters
- event: event information max_gas: How much gas can an event put in, currently this number is sent from the application side. max_bytes: The size of an event is 128m time_iota_ms: The block interval is 1s, currently configured in config.toml
- validator: Verifier pub_key_types: Verifier signature algorithm ed25519
- app_hash:app's hash code
- app_state: App status information gov: Community information mint: Inflation information crisis: Fixed rate information staking: Configuration information of the staking module bank: Configuration information of bank module slashing: Configuration information of the slashing module supply: Configuration information of the supply module params: Parameter information auth: Authentication information punishment: Penalize nodes that do not produce blocks distribution: Distribute block rewards iam: Configuration information of iam module genutil: Generating transaction information for the genesis block
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result object
request:
reponse:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result:result
- listening: Whether the node is in the listening state
- listeners: Node monitoring address array
- n_peers: Number of peer nodes
- peers: Peer node array
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request -result:result
- n_txs: Number of unconfirmed transactions
- txs: Unconfirmed transaction array
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result:
- node_info: Node information
- sync_info: Synchronization information
- validator_info: Verify node information
request:
response:
hash - Transaction hash, byte array
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result Object
- hash: Hash
- height: Block height
- index: index
- tx_result: The result of the transaction code: 0 data: "" log: Log output info: information gasWanted: The amount of gas that needs to be consumed gasUsed: Gas used events: Event set codespace: "" tx:
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result object n_txs: Number of unconfirmed transactions txs: Unconfirmed transaction array
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result object
- block_height: Block height
- validators: Verifier
- address: Verifier address
- pub_key: Verifier public key type: Signature algorithm value: public key
- voting_power: Voting rights
- proposer_priority: Applicant's priority
request:
response:
no
Return a JSON object, the structure is as follows:
- jsonrpc:JSONRPC version, fixed as "2.0"
- id:ID number of API request
- result: Result object
- node_info:
- protocol_version: Protocol version number p2p: p2p protocol version number block: Protocol version number of block app: Protocol version number of app
- id: Node id
- listen_addr: TCP listening address and port
- network: Network number
- version: Node version
- channels: Channel data
- moniker: Monitor the network
- other: tx_index: on is to open tx_index, off is to close rpc_address: rpc's IP and listening port
- application_version: App version name: Application Name server_name: name of server client_name: Client name version: version number commit: Submission number go: Go version and operating platform
request:
response:
no
Return a JSON object, the structure is as follows:
- syncing: Synchronization is true, asynchronous is false
request:
response:
no
Return a JSON object, the structure is as follows:
- block_hash: Block hash
- block: Block information
- header: Block header
- version: Block version
- block: The version number of the block
- app: app version number
- chain_id: ID number of the chain
- height: Block height
- round_received: Receive round
- last_block_id: Previous block
- hash: Block hash
- timestamp: time
- validators_hash: Validator hash
- next_validators_hash: Next validator hash
- consensus_hash: Consensus hash
- last_results_hash: The result of the previous hash
- frame_hash: Hash in consensus state
- txs_hash: txs hash
- app_hash: app hash
- receipts_hash: Receiver's hash
- txs: Transaction set
- receipts:Recipient
- validator: Verifier
- event_cnt: number of events
- tx_cnt: tx number
- signatures: Signature information
- validator: Verifier
- sig: Signature information
request:
response:
height - The height of the block to be queried, int64, optional, default value: 0, which means the latest block
Return a JSON object, the structure is as follows:
- block_hash: Block hash
- block: Block information
- header: Block header
- version: Block version
- block: The version number of the block
- app: app version number
- chain_id: ID number of the chain
- height: Block height
- round_received: Receive round
- last_block_id: Previous block
- hash: Block hash
- timestamp: time
- validators_hash: Validator hash
- next_validators_hash: Next validator hash
- consensus_hash: Consensus hash
- last_results_hash: The result of the previous hash
- frame_hash: Hash in consensus state
- txs_hash: txs hash
- app_hash: app hash
- receipts_hash: Receiver's hash
- txs: Transaction set
- receipts:Recipient
- validator: Verifier
- event_cnt: number of events
- tx_cnt: tx number
- signatures: Signature information
- validator: Verifier
- sig: Signature information
request:
response:
no
Return a JSON object, the structure is as follows:
- height: Block height
- result: result
- block_height: "1732",
- validators: Verifier information
- address: Verifier address
- pub_key: Verifier public key
- proposer_priority: Applicant's priority
- voting_power: Voting rights
request:
response:
height - The height of the block to be queried, int64, optional, default value: 0, which means the latest block
Return a JSON object, the structure is as follows:
- height: Block height
- result: result
- block_height: "1732",
- validators: Verifier information
- address: Verifier address
- pub_key: Verifier public key
- proposer_priority: Applicant's priority
- voting_power: Voting rights
request:
response: