Skip to content
LogoLogo

HashMerchant

RegisteredChain

GET/terp/hashmerchant/v1/chain/{chain_uid}

RegisteredChain returns a single registered chain by UID.

Path Parameters

chain_uidRequired
string

Responses

RegisteredChains

GET/terp/hashmerchant/v1/chains

RegisteredChains lists all registered chains.

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

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

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

Since: cosmos-sdk 0.43

Responses

RegisteredContract

GET/terp/hashmerchant/v1/contract/{contract_addr}

RegisteredContract returns a single registered contract.

Path Parameters

contract_addrRequired
string

Responses

RegisteredContracts

GET/terp/hashmerchant/v1/contracts

RegisteredContracts lists all registered contracts.

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

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

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

Since: cosmos-sdk 0.43

Responses

Escrow

GET/terp/hashmerchant/v1/escrow/{contract_addr}

Escrow returns the escrow record for a contract.

Path Parameters

contract_addrRequired
string

Responses

Params

GET/terp/hashmerchant/v1/params

Params returns module parameters.

Responses

HashRoot

GET/terp/hashmerchant/v1/root/{chain_uid}/{algo}

HashRoot returns the latest confirmed root for a chain + algorithm.

Path Parameters

chain_uidRequired
string
algoRequired
string

Responses

HashRoots

GET/terp/hashmerchant/v1/roots/{chain_uid}

HashRoots lists all confirmed roots for a chain.

Path Parameters

chain_uidRequired
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

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

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

Since: cosmos-sdk 0.43

Responses