expand.network
  • Overview
  • Getting Started
  • 🔑How do I get my API Key?
  • 📑List of All Endpoints
  • ⚙️SDK
    • Overview
    • Getting Started
  • ⛓️INTEGRATIONS
    • ⚡Blockchains
      • EVM based blockchains
        • Ethereum
        • Binance Smart Chain
        • Avalanche - C
        • Avalanche - P
        • Avalanche - X
        • Polygon
        • Cronos
        • Arbitrum
        • Fantom
        • Optimism
        • Base
        • zkSync Era
        • Mantle
      • Non-EVM based chains
        • Tron
        • Solana
        • Near
        • Algorand
        • Aptos
        • Sui
        • Starknet
        • TON
        • Cosmos Hub
        • Osmosis
        • Stacks
        • Bitcoin
        • Stellar
          • Stellar RWA
        • XRP Ledger
          • XRP Ledger RWA
    • ⚡Bridges
      • Stargate
      • Stargate V2
      • Squid Router
      • Squid Router V2
      • Allbridge Classic
      • Allbridge Core
    • ⚡DEX & DEX Aggregators
      • Uniswap V2
      • Uniswap V3
      • Uniswap X
      • Sushiswap V2
      • PancakeSwap V2
      • PancakeSwap V3
      • Aerodrome
      • Camelot V3
      • Curve V2
      • Balancer V2
      • STON.fi
      • Trader Joe
      • Orca
      • Raydium
      • SDEX
      • Cetus
      • REF Finance
      • Liquidswap
      • Sologenic
      • Alex
      • 0x (Aggregator)
      • 1inch (Aggregator)
      • Kyberswap (Aggregator)
        • Kyberswap ( Limit Order Endpoints )
      • Jupiter (Aggregator)
    • ⚡Derivatives
      • dYdX V4
    • ⚡Fungible Tokens
      • ERC20
      • WETH
    • ⚡Lending Protocols
      • Aave V2
      • Aave V3
      • Compound V2
      • Compound V3
      • Morpho
    • ⚡Yield Aggregators
      • Yearn Finance V2
      • Harvest Finance
      • Pendle
    • ⚡Liquid Staking
      • Chorus One
      • Lido V2
      • Stader
      • Benqi
      • Jito
      • EigenLayer
    • ⚡Non Fungible Tokens
      • ERC721
      • ERC1155
      • Metaplex
    • ⚡Oracles
      • ChainLink
      • WinkLink
      • Pyth Network
      • RedStone
    • ⚡Stablecoins
      • EVM
    • ⚡Synthetics
      • Synthetix
    • ⚡Supported Wallets
      • MPC Wallets
        • DFNS
        • FORDEFI
        • FIREBLOCKS
        • CIRCLE
      • HD Wallets
        • PHANTOM
        • COINBASE
        • TON Wallet
      • Wallet Connect v2
  • How To
    • Execute a Local Swap
    • Execute a Cross Chain Swap
    • Use Limit Orders
    • Lend and Borrow
    • Provision Liquidity
      • Adding Liquidity
      • Removing liquidity
    • Yield Farm
    • Use Our Transaction Decoder
    • Submit an RFQ
    • Subscribe to Events
    • Stream Data (WebSocket)
      • Stream Transaction
      • Stream Trade
      • Stream Gas
      • Stream Ticker Price
    • Source Pricing
    • Track Memecoins
    • Manage Token Approvals
  • Use Cases
    • Trade Reconciliation
    • Portfolio Management
    • Trading Features
    • On-Chain Data: DEX Liquidity Pool Forensics
    • Transaction and Pool Analysis
  • Account Abstraction
    • Overview
      • User Endpoints
      • Paymaster Endpoint
      • Bundler Endpoint
    • ⚙️SDK - Overview
  • Additional Info
    • Error Messages
    • Client-Side Security Essentials
    • Compute Unit Costs
    • API Metadata
    • Audit Certificate
    • Brand Assets
    • FAQs
    • Quicknode Marketplace
      • DEX
      • Lending Protocols
  • ID's
    • Chain IDs
    • Bridge IDs
      • Internal Chain IDs for Bridges
    • DEX IDs
    • Lending Protocol IDs
    • Yield Aggregator ID
    • Liquid Staking IDs
    • Oracle IDs
    • Stablecoin IDs
    • Derivatives IDs
    • Synthetics IDs
  • Mapping
    • Blockchains
    • DEXs
      • Uniswap V2
      • Uniswap V3
      • Sushiswap
      • PancakeSwap
      • Curve
      • Balancer
    • Lending Protocols
      • Aave
      • Compound
  • Protocol Spender
    • Spender list
Powered by GitBook
On this page
  • /getbalance
  • /getblock
  • /getgasprice
  • /gettransaction
  • /sendtransaction
  • /decodetransaction
  1. INTEGRATIONS
  2. Blockchains
  3. Non-EVM based chains

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
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "1555685"
    }
}

/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
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "CF1F630BB22B3948DBA75EFBF38FFED80B786A76CA786C5BD1B3765A0F0C4390",
        "miner": null,
        "nonce": null,
        "number": "21099500",
        "parentHash": null,
        "size": null,
        "timestamp": "1719819078",
        "totalDifficulty": null,
        "transactions": [
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.staking.v1beta1.MsgDelegate",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 48,
                                "10": 48,
                                "11": 115,
                                "12": 54,
                                "13": 102,
                                "14": 122,
                                "15": 116,
                                "16": 55,
                                "17": 107,
                                "18": 102,
                                "19": 53,
                                "20": 104,
                                "21": 104,
                                "22": 117,
                                "23": 109,
                                "24": 118,
                                "25": 119,
                                "26": 106,
                                "27": 120,
                                "28": 107,
                                "29": 121,
                                "30": 121,
                                "31": 122,
                                "32": 116,
                                "33": 121,
                                "34": 55,
                                "35": 119,
                                "36": 102,
                                "37": 109,
                                "38": 99,
                                "39": 110,
                                "40": 112,
                                "41": 97,
                                "42": 99,
                                "43": 112,
                                "44": 120,
                                "45": 110,
                                "46": 55,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 119,
                                "64": 108,
                                "65": 97,
                                "66": 103,
                                "67": 117,
                                "68": 99,
                                "69": 120,
                                "70": 100,
                                "71": 120,
                                "72": 118,
                                "73": 115,
                                "74": 109,
                                "75": 118,
                                "76": 106,
                                "77": 54,
                                "78": 51,
                                "79": 51,
                                "80": 48,
                                "81": 56,
                                "82": 54,
                                "83": 52,
                                "84": 120,
                                "85": 56,
                                "86": 113,
                                "87": 51,
                                "88": 118,
                                "89": 120,
                                "90": 122,
                                "91": 52,
                                "92": 120,
                                "93": 48,
                                "94": 50,
                                "95": 114,
                                "96": 109,
                                "97": 118,
                                "98": 109,
                                "99": 115,
                                "100": 117,
                                "101": 26,
                                "102": 17,
                                "103": 10,
                                "104": 5,
                                "105": 117,
                                "106": 97,
                                "107": 116,
                                "108": 111,
                                "109": 109,
                                "110": 18,
                                "111": 8,
                                "112": 49,
                                "113": 51,
                                "114": 55,
                                "115": 48,
                                "116": 48,
                                "117": 48,
                                "118": 48,
                                "119": 48
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 203,
                                    "4": 250,
                                    "5": 70,
                                    "6": 99,
                                    "7": 23,
                                    "8": 42,
                                    "9": 187,
                                    "10": 199,
                                    "11": 47,
                                    "12": 197,
                                    "13": 157,
                                    "14": 250,
                                    "15": 102,
                                    "16": 101,
                                    "17": 198,
                                    "18": 8,
                                    "19": 120,
                                    "20": 28,
                                    "21": 110,
                                    "22": 250,
                                    "23": 18,
                                    "24": 140,
                                    "25": 158,
                                    "26": 162,
                                    "27": 19,
                                    "28": 130,
                                    "29": 239,
                                    "30": 32,
                                    "31": 222,
                                    "32": 118,
                                    "33": 187,
                                    "34": 193
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::1"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "20605"
                            }
                        ],
                        "gasLimit": "BIGINT::824168",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 73,
                        "1": 144,
                        "2": 72,
                        "3": 62,
                        "4": 37,
                        "5": 158,
                        "6": 127,
                        "7": 82,
                        "8": 249,
                        "9": 142,
                        "10": 206,
                        "11": 30,
                        "12": 243,
                        "13": 231,
                        "14": 73,
                        "15": 93,
                        "16": 224,
                        "17": 112,
                        "18": 111,
                        "19": 44,
                        "20": 183,
                        "21": 237,
                        "22": 225,
                        "23": 148,
                        "24": 175,
                        "25": 191,
                        "26": 178,
                        "27": 183,
                        "28": 23,
                        "29": 146,
                        "30": 16,
                        "31": 226,
                        "32": 79,
                        "33": 212,
                        "34": 101,
                        "35": 86,
                        "36": 206,
                        "37": 118,
                        "38": 104,
                        "39": 182,
                        "40": 97,
                        "41": 3,
                        "42": 178,
                        "43": 82,
                        "44": 38,
                        "45": 131,
                        "46": 103,
                        "47": 32,
                        "48": 101,
                        "49": 208,
                        "50": 174,
                        "51": 138,
                        "52": 84,
                        "53": 105,
                        "54": 170,
                        "55": 45,
                        "56": 27,
                        "57": 158,
                        "58": 77,
                        "59": 16,
                        "60": 63,
                        "61": 189,
                        "62": 150,
                        "63": 151
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.gov.v1beta1.MsgVote",
                            "value": {
                                "0": 8,
                                "1": 167,
                                "2": 7,
                                "3": 18,
                                "4": 45,
                                "5": 99,
                                "6": 111,
                                "7": 115,
                                "8": 109,
                                "9": 111,
                                "10": 115,
                                "11": 49,
                                "12": 119,
                                "13": 54,
                                "14": 122,
                                "15": 117,
                                "16": 97,
                                "17": 54,
                                "18": 101,
                                "19": 103,
                                "20": 107,
                                "21": 55,
                                "22": 51,
                                "23": 104,
                                "24": 113,
                                "25": 99,
                                "26": 118,
                                "27": 113,
                                "28": 53,
                                "29": 119,
                                "30": 108,
                                "31": 104,
                                "32": 110,
                                "33": 116,
                                "34": 57,
                                "35": 118,
                                "36": 104,
                                "37": 52,
                                "38": 113,
                                "39": 57,
                                "40": 48,
                                "41": 53,
                                "42": 101,
                                "43": 53,
                                "44": 110,
                                "45": 55,
                                "46": 50,
                                "47": 102,
                                "48": 99,
                                "49": 102,
                                "50": 24,
                                "51": 1
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 78,
                                    "4": 207,
                                    "5": 181,
                                    "6": 222,
                                    "7": 20,
                                    "8": 97,
                                    "9": 203,
                                    "10": 27,
                                    "11": 248,
                                    "12": 6,
                                    "13": 158,
                                    "14": 130,
                                    "15": 63,
                                    "16": 91,
                                    "17": 208,
                                    "18": 166,
                                    "19": 130,
                                    "20": 182,
                                    "21": 185,
                                    "22": 75,
                                    "23": 218,
                                    "24": 101,
                                    "25": 158,
                                    "26": 39,
                                    "27": 218,
                                    "28": 92,
                                    "29": 69,
                                    "30": 15,
                                    "31": 206,
                                    "32": 13,
                                    "33": 246,
                                    "34": 221
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::39"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "313"
                            }
                        ],
                        "gasLimit": "BIGINT::62516",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 90,
                        "1": 212,
                        "2": 190,
                        "3": 119,
                        "4": 20,
                        "5": 75,
                        "6": 27,
                        "7": 24,
                        "8": 144,
                        "9": 51,
                        "10": 79,
                        "11": 135,
                        "12": 60,
                        "13": 42,
                        "14": 1,
                        "15": 98,
                        "16": 202,
                        "17": 129,
                        "18": 52,
                        "19": 52,
                        "20": 255,
                        "21": 129,
                        "22": 92,
                        "23": 160,
                        "24": 40,
                        "25": 235,
                        "26": 160,
                        "27": 221,
                        "28": 86,
                        "29": 58,
                        "30": 126,
                        "31": 168,
                        "32": 15,
                        "33": 22,
                        "34": 42,
                        "35": 246,
                        "36": 180,
                        "37": 141,
                        "38": 35,
                        "39": 164,
                        "40": 186,
                        "41": 132,
                        "42": 100,
                        "43": 26,
                        "44": 198,
                        "45": 123,
                        "46": 2,
                        "47": 160,
                        "48": 138,
                        "49": 141,
                        "50": 42,
                        "51": 181,
                        "52": 72,
                        "53": 46,
                        "54": 183,
                        "55": 76,
                        "56": 96,
                        "57": 183,
                        "58": 106,
                        "59": 109,
                        "60": 191,
                        "61": 150,
                        "62": 229,
                        "63": 51
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.staking.v1beta1.MsgDelegate",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 114,
                                "10": 100,
                                "11": 54,
                                "12": 100,
                                "13": 55,
                                "14": 97,
                                "15": 117,
                                "16": 116,
                                "17": 117,
                                "18": 57,
                                "19": 103,
                                "20": 52,
                                "21": 57,
                                "22": 56,
                                "23": 106,
                                "24": 99,
                                "25": 106,
                                "26": 120,
                                "27": 48,
                                "28": 119,
                                "29": 97,
                                "30": 113,
                                "31": 53,
                                "32": 54,
                                "33": 110,
                                "34": 57,
                                "35": 51,
                                "36": 106,
                                "37": 103,
                                "38": 121,
                                "39": 99,
                                "40": 104,
                                "41": 56,
                                "42": 52,
                                "43": 56,
                                "44": 120,
                                "45": 51,
                                "46": 55,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 116,
                                "64": 101,
                                "65": 56,
                                "66": 110,
                                "67": 120,
                                "68": 112,
                                "69": 99,
                                "70": 50,
                                "71": 109,
                                "72": 121,
                                "73": 106,
                                "74": 102,
                                "75": 114,
                                "76": 104,
                                "77": 97,
                                "78": 116,
                                "79": 121,
                                "80": 48,
                                "81": 100,
                                "82": 110,
                                "83": 122,
                                "84": 100,
                                "85": 104,
                                "86": 115,
                                "87": 53,
                                "88": 97,
                                "89": 104,
                                "90": 100,
                                "91": 104,
                                "92": 53,
                                "93": 97,
                                "94": 103,
                                "95": 122,
                                "96": 117,
                                "97": 121,
                                "98": 109,
                                "99": 57,
                                "100": 118,
                                "101": 26,
                                "102": 17,
                                "103": 10,
                                "104": 5,
                                "105": 117,
                                "106": 97,
                                "107": 116,
                                "108": 111,
                                "109": 109,
                                "110": 18,
                                "111": 8,
                                "112": 49,
                                "113": 52,
                                "114": 51,
                                "115": 48,
                                "116": 48,
                                "117": 48,
                                "118": 48,
                                "119": 48
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 136,
                                    "4": 83,
                                    "5": 57,
                                    "6": 190,
                                    "7": 170,
                                    "8": 82,
                                    "9": 218,
                                    "10": 127,
                                    "11": 93,
                                    "12": 170,
                                    "13": 222,
                                    "14": 248,
                                    "15": 66,
                                    "16": 77,
                                    "17": 119,
                                    "18": 193,
                                    "19": 164,
                                    "20": 138,
                                    "21": 90,
                                    "22": 45,
                                    "23": 73,
                                    "24": 173,
                                    "25": 196,
                                    "26": 175,
                                    "27": 181,
                                    "28": 81,
                                    "29": 214,
                                    "30": 116,
                                    "31": 146,
                                    "32": 61,
                                    "33": 95,
                                    "34": 228
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::1"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "20723"
                            }
                        ],
                        "gasLimit": "BIGINT::828899",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 236,
                        "1": 169,
                        "2": 93,
                        "3": 242,
                        "4": 227,
                        "5": 130,
                        "6": 142,
                        "7": 41,
                        "8": 229,
                        "9": 158,
                        "10": 70,
                        "11": 109,
                        "12": 97,
                        "13": 68,
                        "14": 210,
                        "15": 28,
                        "16": 121,
                        "17": 229,
                        "18": 43,
                        "19": 7,
                        "20": 117,
                        "21": 78,
                        "22": 63,
                        "23": 245,
                        "24": 40,
                        "25": 213,
                        "26": 104,
                        "27": 11,
                        "28": 66,
                        "29": 17,
                        "30": 18,
                        "31": 196,
                        "32": 123,
                        "33": 92,
                        "34": 228,
                        "35": 207,
                        "36": 193,
                        "37": 201,
                        "38": 239,
                        "39": 245,
                        "40": 113,
                        "41": 89,
                        "42": 210,
                        "43": 228,
                        "44": 234,
                        "45": 166,
                        "46": 105,
                        "47": 12,
                        "48": 36,
                        "49": 117,
                        "50": 96,
                        "51": 75,
                        "52": 63,
                        "53": 61,
                        "54": 208,
                        "55": 55,
                        "56": 12,
                        "57": 169,
                        "58": 184,
                        "59": 235,
                        "60": 46,
                        "61": 222,
                        "62": 151,
                        "63": 194
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 54,
                                "10": 55,
                                "11": 101,
                                "12": 113,
                                "13": 120,
                                "14": 122,
                                "15": 110,
                                "16": 120,
                                "17": 117,
                                "18": 54,
                                "19": 99,
                                "20": 97,
                                "21": 51,
                                "22": 110,
                                "23": 107,
                                "24": 51,
                                "25": 120,
                                "26": 110,
                                "27": 48,
                                "28": 97,
                                "29": 102,
                                "30": 55,
                                "31": 119,
                                "32": 122,
                                "33": 115,
                                "34": 51,
                                "35": 120,
                                "36": 113,
                                "37": 106,
                                "38": 101,
                                "39": 53,
                                "40": 101,
                                "41": 122,
                                "42": 56,
                                "43": 122,
                                "44": 104,
                                "45": 101,
                                "46": 113,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 104,
                                "64": 109,
                                "65": 100,
                                "66": 53,
                                "67": 51,
                                "68": 53,
                                "69": 102,
                                "70": 54,
                                "71": 57,
                                "72": 116,
                                "73": 51,
                                "74": 120,
                                "75": 50,
                                "76": 54,
                                "77": 50,
                                "78": 109,
                                "79": 54,
                                "80": 115,
                                "81": 57,
                                "82": 119,
                                "83": 99,
                                "84": 54,
                                "85": 106,
                                "86": 100,
                                "87": 48,
                                "88": 100,
                                "89": 109,
                                "90": 101,
                                "91": 108,
                                "92": 50,
                                "93": 122,
                                "94": 101,
                                "95": 118,
                                "96": 104,
                                "97": 121,
                                "98": 117,
                                "99": 104,
                                "100": 109
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 97,
                                    "4": 9,
                                    "5": 95,
                                    "6": 251,
                                    "7": 253,
                                    "8": 109,
                                    "9": 140,
                                    "10": 186,
                                    "11": 60,
                                    "12": 197,
                                    "13": 87,
                                    "14": 64,
                                    "15": 13,
                                    "16": 13,
                                    "17": 76,
                                    "18": 214,
                                    "19": 227,
                                    "20": 42,
                                    "21": 201,
                                    "22": 16,
                                    "23": 58,
                                    "24": 236,
                                    "25": 15,
                                    "26": 119,
                                    "27": 145,
                                    "28": 152,
                                    "29": 169,
                                    "30": 16,
                                    "31": 6,
                                    "32": 136,
                                    "33": 49,
                                    "34": 230
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::92"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "19915"
                            }
                        ],
                        "gasLimit": "BIGINT::796597",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 229,
                        "1": 200,
                        "2": 144,
                        "3": 131,
                        "4": 245,
                        "5": 132,
                        "6": 101,
                        "7": 181,
                        "8": 152,
                        "9": 230,
                        "10": 172,
                        "11": 143,
                        "12": 20,
                        "13": 62,
                        "14": 152,
                        "15": 33,
                        "16": 15,
                        "17": 251,
                        "18": 242,
                        "19": 4,
                        "20": 19,
                        "21": 241,
                        "22": 193,
                        "23": 252,
                        "24": 177,
                        "25": 166,
                        "26": 151,
                        "27": 239,
                        "28": 66,
                        "29": 239,
                        "30": 137,
                        "31": 83,
                        "32": 10,
                        "33": 54,
                        "34": 104,
                        "35": 224,
                        "36": 1,
                        "37": 93,
                        "38": 76,
                        "39": 253,
                        "40": 114,
                        "41": 24,
                        "42": 56,
                        "43": 248,
                        "44": 116,
                        "45": 173,
                        "46": 23,
                        "47": 104,
                        "48": 86,
                        "49": 76,
                        "50": 252,
                        "51": 36,
                        "52": 137,
                        "53": 5,
                        "54": 179,
                        "55": 136,
                        "56": 206,
                        "57": 42,
                        "58": 219,
                        "59": 189,
                        "60": 188,
                        "61": 135,
                        "62": 7,
                        "63": 70
                    }
                ]
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}

/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
{
    "status": 200,
    "msg": "success",
    "data": {
        "gasPrice": "3308000"
    }
}

/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
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "E38DE34FDC6B56114B3A573B9477B8DD137E54C30158095FFA74043C546CA0CB",
        "transactionStatus": true,
        "blockNumber": "21099499",
        "timestamp": "1719819072",
        "from": "cosmos1uryv4pr5pmsd23nqtdu8mgfn3wdtjrh26uu7g6",
        "to": "cosmosvaloper1tflk30mq5vgqjdly92kkhhq3raev2hnz6eete3",
        "value": null,
        "transactionFees": "22352",
        "gas": "617485",
        "gasPrice": null,
        "input": null,
        "nonce": null,
        "network": null
    }
}

/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"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactionHash": "BFA09B71DCABDE1A99D57F48A4CAFE6C584A64435E2564FFDA0A7D7376715057"
    }
}

/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"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "body": {
                "messages": [
                    {
                        "typeUrl": "/cosmos.bank.v1beta1.MsgSend",
                        "value": {
                            "0": 10,
                            "1": 45,
                            "2": 99,
                            "3": 111,
                            "4": 115,
                            "5": 109,
                            "6": 111,
                            "7": 115,
                            "8": 49,
                            "9": 113,
                            "10": 120,
                            "11": 50,
                            "12": 103,
                            "13": 114,
                            "14": 112,
                            "15": 104,
                            "16": 101,
                            "17": 54,
                            "18": 117,
                            "19": 117,
                            "20": 102,
                            "21": 113,
                            "22": 51,
                            "23": 114,
                            "24": 113,
                            "25": 48,
                            "26": 102,
                            "27": 115,
                            "28": 51,
                            "29": 118,
                            "30": 104,
                            "31": 56,
                            "32": 103,
                            "33": 109,
                            "34": 119,
                            "35": 50,
                            "36": 50,
                            "37": 108,
                            "38": 109,
                            "39": 101,
                            "40": 56,
                            "41": 119,
                            "42": 106,
                            "43": 51,
                            "44": 55,
                            "45": 109,
                            "46": 104,
                            "47": 18,
                            "48": 45,
                            "49": 99,
                            "50": 111,
                            "51": 115,
                            "52": 109,
                            "53": 111,
                            "54": 115,
                            "55": 49,
                            "56": 109,
                            "57": 103,
                            "58": 120,
                            "59": 121,
                            "60": 119,
                            "61": 113,
                            "62": 119,
                            "63": 102,
                            "64": 100,
                            "65": 97,
                            "66": 106,
                            "67": 119,
                            "68": 113,
                            "69": 56,
                            "70": 102,
                            "71": 51,
                            "72": 113,
                            "73": 53,
                            "74": 121,
                            "75": 97,
                            "76": 55,
                            "77": 100,
                            "78": 51,
                            "79": 121,
                            "80": 113,
                            "81": 119,
                            "82": 53,
                            "83": 122,
                            "84": 103,
                            "85": 51,
                            "86": 112,
                            "87": 100,
                            "88": 116,
                            "89": 106,
                            "90": 115,
                            "91": 102,
                            "92": 51,
                            "93": 102,
                            "94": 26,
                            "95": 16,
                            "96": 10,
                            "97": 5,
                            "98": 117,
                            "99": 97,
                            "100": 116,
                            "101": 111,
                            "102": 109,
                            "103": 18,
                            "104": 7,
                            "105": 49,
                            "106": 48,
                            "107": 48,
                            "108": 48,
                            "109": 48,
                            "110": 48,
                            "111": 48
                        }
                    }
                ],
                "memo": "expand",
                "timeoutHeight": "BIGINT::0",
                "extensionOptions": [],
                "nonCriticalExtensionOptions": []
            },
            "authInfo": {
                "signerInfos": [
                    {
                        "publicKey": {
                            "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                            "value": {
                                "0": 10,
                                "1": 33,
                                "2": 2,
                                "3": 154,
                                "4": 218,
                                "5": 27,
                                "6": 154,
                                "7": 153,
                                "8": 157,
                                "9": 48,
                                "10": 44,
                                "11": 210,
                                "12": 208,
                                "13": 200,
                                "14": 138,
                                "15": 23,
                                "16": 249,
                                "17": 10,
                                "18": 87,
                                "19": 94,
                                "20": 137,
                                "21": 212,
                                "22": 217,
                                "23": 97,
                                "24": 241,
                                "25": 130,
                                "26": 128,
                                "27": 177,
                                "28": 205,
                                "29": 22,
                                "30": 110,
                                "31": 168,
                                "32": 156,
                                "33": 36,
                                "34": 61
                            }
                        },
                        "modeInfo": {
                            "single": {
                                "mode": 1
                            }
                        },
                        "sequence": "BIGINT::0"
                    }
                ],
                "fee": {
                    "amount": [
                        {
                            "denom": "uatom",
                            "amount": "1000"
                        }
                    ],
                    "gasLimit": "BIGINT::200000",
                    "payer": "",
                    "granter": ""
                }
            },
            "signatures": [
                {
                    "0": 110,
                    "1": 253,
                    "2": 49,
                    "3": 154,
                    "4": 181,
                    "5": 216,
                    "6": 154,
                    "7": 207,
                    "8": 134,
                    "9": 48,
                    "10": 82,
                    "11": 101,
                    "12": 96,
                    "13": 177,
                    "14": 181,
                    "15": 24,
                    "16": 97,
                    "17": 94,
                    "18": 79,
                    "19": 37,
                    "20": 55,
                    "21": 35,
                    "22": 71,
                    "23": 161,
                    "24": 203,
                    "25": 60,
                    "26": 129,
                    "27": 245,
                    "28": 3,
                    "29": 219,
                    "30": 206,
                    "31": 174,
                    "32": 73,
                    "33": 244,
                    "34": 193,
                    "35": 100,
                    "36": 45,
                    "37": 170,
                    "38": 165,
                    "39": 146,
                    "40": 29,
                    "41": 78,
                    "42": 109,
                    "43": 170,
                    "44": 45,
                    "45": 210,
                    "46": 26,
                    "47": 146,
                    "48": 181,
                    "49": 176,
                    "50": 236,
                    "51": 52,
                    "52": 169,
                    "53": 8,
                    "54": 71,
                    "55": 134,
                    "56": 80,
                    "57": 77,
                    "58": 236,
                    "59": 12,
                    "60": 246,
                    "61": 182,
                    "62": 231,
                    "63": 183
                }
            ]
        }
    }
}
PreviousTONNextOsmosis

Last updated 5 months ago

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

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

Refer to the page for details.

⛓️
⚡
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID
Chain ID