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

NameTypeDescription

rpc

String

Remote procedural call URL

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

/gettransaction

Get details of a transaction.

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

chainId*

Integer

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

chainId*

String

Refer to the Chain ID page for details. By default, Ethereum.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

The raw transaction to be given for decoding.

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

Last updated