Ethereum

/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/?address=0x731FDBd6871aD5cD905eE560A84615229eD8197a

/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 number or block hash.

startBlock

String

Starting block of the range.

endBlock

String

Last block of the range.

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

/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

/getstorage

Get data stored in the given slot.

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

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

Contract address whose storage is needed.

index

String

Slot index on the smart contract. By default, it is taken as 0.

https://api.expand.network/chain/getstorage?address=0x6839f0eB2a4f323aC616b99BA01547dE592BC965

/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 hash.

https://api.expand.network/chain/gettransaction?transactionHash=0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6

/getgasfees

Retrieves the total fee spent, current price, adjusted price (in cents), and the transaction list associated with a specified address within a given block range.

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

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

Addess of the user

startBlock

String

Starting block of the range by default it is latestblock-100

endBlock

String

Last block of the range

by default it is latest block

https://api.expand.network/chain/getgasfees?address=0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990

/portfolio

Get detailed information about the verified assets or tokens currently associated with a user's wallet address.

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

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

Public addess of the user.

tokens

String

Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.

availableOnly

Boolean

By default, false. If true, tokens with balance > 0 will be listed.

pageToken

String

Present at the end of a lengthy response to fetch the next page.

assetType

String

fungible/nonFungible standard choice. By default, all.

https://api.expand.network/chain/portfolio?chainId=1&address=0x356dB816602c85e2075774bB77D13995c8Bab023&availableOnly=true

/getusertransactions

Get the historical transaction details for a specific user address.

GET https://histroicallp.api.expand.network/chain/getusertransactions

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 of the user.

page

String

The page number that the user wants to fetch.

sortOrder

String

The transaction sorting order. asc or desc. By default, desc.

https://historicallp.api.expand.network/chain/getusertransactions?address=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&page=509&chainId=1

/getflashbotblocks

Get details of the flashbot blocks.

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

Query Parameters

NameTypeDescription

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/getflashbotblocks?chainId=1

/getflashbottransactions

Get details of the flashbot transactions.

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

Query Parameters

NameTypeDescription

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/getflashbottransactions?chainId=1

/getflashbotbundle

Get details of the specified flashbot bundle.

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

Query Parameters

NameTypeDescription

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

bundleHash*

String

The bundle hash.

https://api.expand.network/chain/getflashbotbundle?bundleHash=0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f

/gettokenmarketdata

Get the market data for a given asset on the Ethereum chain.

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

Query Parameters

Name TypeDescription

asset*

String

Token address to get the details of.

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

rpc

String

Remote procedural call URL.

Supported Asset List
  • Symbol

    Name

    Address

    USDT

    Tether USDt

    0xdac17f958d2ee523a2206206994597c13d831ec7

    USDC

    USDC

    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

    LINK

    Chainlink

    0x514910771af9ca656af840dff83e8264ecf986ca

    WBTC

    Wrapped Bitcoin

    0x2260fac5e5542a773aa44fbcfedf7c193bc2c599

    DAI

    Dai

    0x6b175474e89094c44da98b954eedeac495271d0f

    SHIB

    Shiba Inu

    0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce

    LEO

    UNUS SED LEO

    0x2af5d2ad76741191d15dfe7bf6ac92d4bd912ca3

    OKB

    OKB

    0x75231f58b43240c9718dd58b4967c5114342a86c

    TUSD

    TrueUSD

    0x0000000000085d4780B73119b644AE5ecd22b376

    UNI

    Uniswap

    0x1f9840a85d5af5bf1d1762f925bdaddc4201f984

    LDO

    Lido DAO

    0x5a98fcbea516cf06857215779fd812ca3bef1b32

    AAVE

    Aave

    0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9

    MNT

    Mantle

    0x3c3a81e81dc49a522a592e7622a7e711c06bf354

    QNT

    Quant

    0x4a220e6096b25eadb88358cb44068a3248254675

    MKR

    Maker

    0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2

    GRT

    The Graph

    0xc944e90c64b2c07662a292be6244bdf05cda44a7

    IMX

    Immutable

    0xf57e7e7c23978c3caec3c3548e3d615c346e79ff

    RNDR

    Render

    0x6de037ef9ad2725eb40118bb1702ebb27e4aeb24

    AXS

    Axie Infinity

    0xbb0e17ef65f82ab018d8edd776e8dd940327b28b

    SAND

    The Sandbox

    0x3845badAde8e6dFF049820680d1F14bD3903a5d0

    MANA

    Decentraland

    0x0f5d2fb29fb7d3cfee444a200298f468908cc942

    SNX

    Synthetix

    0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f

    USDD

    USDD

    0x0c10bf8fcb7bf5412187a595ab97a3609160b5c6

    BGB

    Bitget Token

    0x19de6b897ed14a376dda0fe53a5420d2ac828a28

    FDUSD

    First Digital USD

    0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409

    GALA

    Gala

    0xd1d2Eb1B1e90B638588728b4130137D262C87cae

    CHZ

    Chiliz

    0x3506424f91fd33084466f402d5d97f05f8e3b4af

    KCS

    KuCoin Token

    0xf34960d9d60be18cc1d5afc1a6f012a723a28811

    APE

    ApeCoin

    0x4d224452801aced8b2f0aebe155379bb5d594381

    PEPE

    Pepe

    0x6982508145454ce325ddbe47a25d4ec3d2311933

    RPL

    Rocket Pool

    0xd33526068d116ce69f19a9ee46f0bd304f21a51f

    CRV

    Curve DAO Token

    0xD533a949740bb3306d119CC777fa900bA034cd52

    TRB

    Tellor Tributes

    0x88dF592F8eb5D7Bd38bFeF7dEb0fBc02cf3778a0

    CAKE

    PancakeSwap

    0x152649eA73beAb28c5b49B26eb48f7EAD6d4c898

    XAUt

    Tether Gold

    0x68749665FF8D2d112Fa859AA293F07A622782F38

    HT

    Huobi Token

    0x6f259637dcd74c767781e37bc6133cd6a68aa161

    GNO

    Gnosis Token

    0x6810e776880C02933D47DB1b9fc05908e5386b96

    ETHDYDX

    dYdX (ethDYDX)

    0x92d6c1e31e14520e676a687f0a93788b716beff5

    ROSE

    Oasis Network

    0x26B80FBfC01b71495f477d5237071242e0d959d7

    USDP

    Pax Dollar

    0x8e870d67f660d95d5be530380d0ec0bd388289e1

    PAXG

    PAX Gold

    0x45804880de22913dafe09f4980848ece6ecbaf78

    WOO

    WOO Network

    0x4691937a7508860f876c9c0a2a617e7d9e945d4b

    ILV

    Illuvium

    0x767FE9EDC9E0dF98E07454847909b5E959D7ca0E

    COMP

    Compound

    0xc00e94cb662c3520282e6f5717214004a7f26888

    BLUR

    Blur

    0x5283d291dbcf85356a21ba090e6db59121208b44

    1INCH

    1inch Network

    0x111111111117dc0aa78b770fa6a738034120c302

    NEXO

    Nexo

    0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206

https://api.expand.network/chain/gettokenmarketdata?asset=LINK&chainId=1

/sendtransaction

Send transaction on the chain.

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

Request Body

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.

rawTransaction*

String

The encoded transaction, obtained from the signed transaction.

bdnTransaction

Boolean

If true, then txn goes through the bdn route, which speeds up the transaction process.

By default, false.

mevProtection

Boolean

If true, then txn goes through flashbots.

{
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}

With bdnTransaction: true

{
    "chainId": "1",
    "rawTransaction": "0xf8672385070e93c2cf8261a8946fb447ae94f5180254d436a693907a1f57696900830186a08026a0544037b4bd1f139c5d5cbc926d239f4eff34ecc428872e9ba576d6b921254c15a014e0e56c6b2d752d03e059098d69b59b26063a8767bcd1cfc00fc0e9e7ab8365",
    "bdnTransaction": true
}

With mevProtection: true

{
    "chainId":"1",
    "rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
    "mevProtection": true
}

/genericsmartcontractmethod

Executes a read query on a verified smart contract on etherscan. In case of un-verified smart contracts, ABI needs to be provided to proceed accordingly.

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

Request Body

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.

contractAddress*

String

Address of the Contract to perform read operation on.

parameters

Array

Parameters to the read function

abi

String

Abi of the smart contract

methodName*

String

Name of the read function to be called

blockNumber

String

BlockNumber to perform read query on. by Default latestBlock

{
    "contractAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
    "methodName": "getAmountsIn",
    "parameters": [
        "4515444785",
        [
            "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ]
    ]
}

/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" : "1",
    "rawTransaction":"0xf865808509c9919d87830a4a1194a67e9b68c41b0f26184d64c26e0b2b81466e5994018025a07542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015a005f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049"
}

Last updated