Cosmos Hub

/getbalance

Get the balance or number of the given token in the requested public address.

GET https://api.expand.network/chain/getbalance

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL

chainId*

String

chainSymbol

String

address*

String

The public address to get the balance of.

tokenAddress

String

The address of token to get the balance of.

https://api.expand.network/chain/getbalance?chainId=cosmoshub-4&address=cosmos1y626ufdwxw4pfcst9nt82882zru6nhlvuvvj6t&tokenAddress=ibc%2F6B8A3F5C2AD51CD6171FA41A7E8C35AD594AB69226438DB94450436EA57B3A89

/getblock

Get details of a block.

GET https://historicallp.api.expand.network/chain/getblock

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

blockNumber*

String

The block(sequence) number.

https://historicallp.api.expand.network/chain/getblock?chainId=cosmoshub-4&blockNumber=21099500

/getgasprice

Get the current gas price from the network.

GET https://api.expand.network/chain/getgasprice

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

https://api.expand.network/chain/getgasprice?chainId=cosmoshub-4

/gettransaction

Get details of a transaction.

GET https://api.expand.network/chain/gettransaction

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

transactionHash*

String

The transaction(digest) hash.

https://api.expand.network/chain/gettransaction?chainId=cosmoshub-4&transactionHash=E38DE34FDC6B56114B3A573B9477B8DD137E54C30158095FFA74043C546CA0CB

/sendtransaction

Send transaction on the chain.

POST https://api.expand.network/chain/sendtransaction

Request Body

Name
Type
Description

chainId*

Integer

chainSymbol

String

rawTransaction*

String

The encoded transaction, obtained from signed transaction.

rpc

String

Remote procedural call URL.

{
    "chainId": "theta-testnet-001",
    "rawTransaction": "CpgBCo0BChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEm0KLWNvc21vczFxeDJncnBoZTZ1dWZxM3JxMGZzM3ZoOGdtdzIybG1lOHdqMzdtaBItY29zbW9zMW1neHl3cXdmZGFqd3E4ZjNxNXlhN2QzeXF3NXpnM3BkdGpzZjNmGg0KBXVhdG9tEgQxMDAwEgZleHBhbmQSZQpOCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohApraG5qZnTAs0tDIihf5CldeidTZYfGCgLHNFm6onCQ9EgQKAggBEhMKDQoFdWF0b20SBDEwMDAQwJoMGkCDAcaABMk2FrxMkFQ9+KZ/QNEop8ZSp9o6iHza0i4XkVN0jihHiggSGPwnZV3/Q/964L8veP1cj9v+CT0IjQEu"
}

/decodetransaction

Get the decoded transaction for the provided raw transaction.

POST https://api.expand.network/chain/decodetransaction

Request Body

Name
Type
Description

chainId*

String

chainSymbol

String

rawTransaction*

String

The raw transaction to be given for decoding.

{
    "chainId": "theta-testnet-001",
    "rawTransaction": "CpsBCpABChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEnAKLWNvc21vczFxeDJncnBoZTZ1dWZxM3JxMGZzM3ZoOGdtdzIybG1lOHdqMzdtaBItY29zbW9zMW1neHl3cXdmZGFqd3E4ZjNxNXlhN2QzeXF3NXpnM3BkdGpzZjNmGhAKBXVhdG9tEgcxMDAwMDAwEgZleHBhbmQSZQpOCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohApraG5qZnTAs0tDIihf5CldeidTZYfGCgLHNFm6onCQ9EgQKAggBEhMKDQoFdWF0b20SBDEwMDAQwJoMGkBu/TGatdiaz4YwUmVgsbUYYV5PJTcjR6HLPIH1A9vOrkn0wWQtqqWSHU5tqi3SGpK1sOw0qQhHhlBN7Az2tue3"
}

Last updated