For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Allora — Cosmos REST methods (4/4)

API reference for Allora. All methods ->

Part 4 of 4: 1 · 2 · 3 · 4

Cosmos REST methods

/ibc/core/connection/v1beta1/connections/{connection_id}

Retrieves an IBC connection end.

Parameters

  • connection_id (string; required): a connection unique identifier.

Returns

IBC connections end.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/core/connection/v1beta1/connections/{connection_id}

Response example

{
"connection": {
"client_id": "string",
"versions": [
{
"identifier": "string",
"features": [
"string"
]
}
],
"state": "STATE_UNINITIALIZED_UNSPECIFIED",
"counterparty": {
"client_id": "string",
"connection_id": "string",
"prefix": {
"key_prefix": "string"
}
},
"delay_period": "string"
},
"proof": "string",
"proof_height": {
"revision_number": "string",
"revision_height": "string"
}
}

/ibc/core/connection/v1beta1/connections/{connection_id}/client_state

Retrieves the client state associated with the connection.

Parameters

  • connection_id (string; required): a connection unique identifier.

Returns

Client state.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/core/connection/v1beta1/connections/{connection_id}/client_state

Response example

{
"identified_client_state": {
"client_id": "string",
"client_state": {
"type_url": "string",
"value": "string"
}
},
"proof": "string",
"proof_height": {
"revision_number": "string",
"revision_height": "string"
}
}

/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}

Retrieves the consensus state associated with the connection.

Parameters

  • connection_id (string; required): a connection unique identifier.
  • revision_number (string, uint64): a required revision number.
  • revision_height (string, uint64): a required revision height.

Returns

Consensus state.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}

Response example

{
"consensus_state": {
"type_url": "string",
"value": "string"
},
"client_id": "string",
"proof": "string",
"proof_height": {
"revision_number": "string",
"revision_height": "string"
}
}

Ibc applications methods

/ibc/applications/transfer/v1beta1/denom_traces

Retrieves all denomination traces.

Parameters

  • pagination.key (string, byte): a value returned in PageResponse.next_key to begin querying the next page efficiently. Only one of offset or key should be set.
  • pagination.key (string, uint64): a numeric offset that can be used when key is unavailable (less efficient than using key). Only one of offset or key should be set.
  • pagination.limit (string, uint64): a total number of results to be returned in the results page. If empty, will default to a value to be set by each app.
  • pagination.count_total (boolean): set to true to indicate that the result set should include a count of the total number of items available for pagination in the UIs. Only respected when offset is used, ignored when key is set.

Returns

Denomination traces.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/applications/transfer/v1beta1/denom_traces

Response example

{
"denom_traces": [
{
"path": "string",
"base_denom": "string"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}

/ibc/applications/transfer/v1beta1/denom_traces/{hash}

Retrieves a denomination trace information by hash.

Parameters

  • hash (string, hex; required): a hash of the denomination trace information.

Returns

Denomination traces.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/applications/transfer/v1beta1/denom_traces/{hash}

Response example

{
"denom_trace": {
"path": "string",
"base_denom": "string"
}
}

/ibc/applications/transfer/v1beta1/params

Retrieves all parameters of the IBC transfer module.

Parameters

None.

Returns

Parameters of the IBC transfer module.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/ibc/applications/transfer/v1beta1/params

Response example

{
"params": {
"send_enabled": true,
"receive_enabled": true
}
}

Tx methods

/cosmos/tx/v1beta1/simulate

Simulates executing a transaction for estimating gas usage.

Parameters

  • <body> (object; required):
{
"tx": {
"body": {
"messages": [
{
"type_url": "string",
"value": "string"
}
],
"memo": "string",
"timeout_height": "string",
"extension_options": [
{
"type_url": "string",
"value": "string"
}
],
"non_critical_extension_options": [
{
"type_url": "string",
"value": "string"
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "string",
"value": "string"
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": {
"bitarray": {
"extra_bits_stored": 0,
"elems": "string"
},
"mode_infos": [
null
]
}
},
"sequence": "string"
}
],
"fee": {
"amount": [
{
"denom": "string",
"amount": "string"
}
],
"gas_limit": "string",
"payer": "string",
"granter": "string"
}
},
"signatures": [
"string"
]
}
}

Returns

Estimated gas usage.

Request example

curl https://rpc.ankr.com/http/allora_cosmos_testnet/cosmos/tx/v1beta1/simulate

Response example

{
"gas_info": {
"gas_wanted": "string",
"gas_used": "string"
},
"result": {
"data": "string",
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
]
}
}