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.

blockNumber

String

Block number for which the balance needs to be retrieved.

By default it will pick the latest block number when not specified.

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=1&blockNumber=20182307&address=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&tokenAddress=0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599

/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. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.

endBlock

String

Last block of the range. Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.

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://historicallp.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

/getapprovaldata

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

Query Parameter

Name TypeDescription

address*

String

The public address of the user.

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.

https://api.expand.network/chain/getapprovaldata?address=0xDdE53141420C90550e87dF0349D79B3a6161f6F6