Osmosis

/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

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=osmosis-1&address=osmo1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u8slkgw

/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

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=osmosis-1&blockNumber=23318268

/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

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=osmosis-1

/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

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=osmosis-1&transactionHash=011B8922E83E37C1D105EDB164C75F082D400202F909AB4F85DC1AB7D94DE615

/portfolio

Get the comprehensive information about the assets/ tokens owned by a user.

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

Query Parameters

Name
Type
Description

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

Public addess of the user.

https://api.expand.network/chain/portfolio?chainId=osmosis-1&address=osmo1c3ljch9dfw5kf52nfwpxd2zmj2ese7agnx0p9tenkrryasrle5sqf3ftpg

/sendtransaction

Send transaction on the chain.

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

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

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.

{
  "chainId": "osmo-test-5",
  "rawTransaction": "CpQBCokBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmkKK29zbW8xcXgyZ3JwaGU2dXVmcTNycTBmczN2aDhnbXcyMmxtZTh4Znp3ZDkSK29zbW8xbHkydGpuOXA0MHdqdXV2YXF2bjJ4NWhsdXdjZ2U0ZWZ2cTRkNDUaDQoFdW9zbW8SBDEwMDASBmV4cGFuZBJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECmtobmpmdMCzS0MiKF/kKV16J1Nlh8YKAsc0WbqicJD0SBAoCCAESFAoOCgV1b3NtbxIFMTAwMDAQwJoMGkD1tkxby+wrNEjNjHRtjiEL73qxIpIlayytBV9GmnhARy61SgIrLE0TCTAoDzxD/PV9gLIDbvpFQdwEzjYhSk7n"
}

/decodetransaction

Get the decoded transaction for the provided raw transaction.

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

Request Body

Name
Type
Description

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": "osmo-test-5",
  "rawTransaction": "CpQBCokBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmkKK29zbW8xcXgyZ3JwaGU2dXVmcTNycTBmczN2aDhnbXcyMmxtZTh4Znp3ZDkSK29zbW8xbHkydGpuOXA0MHdqdXV2YXF2bjJ4NWhsdXdjZ2U0ZWZ2cTRkNDUaDQoFdW9zbW8SBDEwMDASBmV4cGFuZBJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECmtobmpmdMCzS0MiKF/kKV16J1Nlh8YKAsc0WbqicJD0SBAoCCAESFAoOCgV1b3NtbxIFMTAwMDAQwJoMGkD1tkxby+wrNEjNjHRtjiEL73qxIpIlayytBV9GmnhARy61SgIrLE0TCTAoDzxD/PV9gLIDbvpFQdwEzjYhSk7n"
}

Last updated