Blockchain

We support all major public blockchains

expand.network provides connectivity to various EVM and Non-EVM based chains for both, query(Read) and transaction(Write). So now, the developer does not need to worry about how different blockchains work. The developer will be required to know only the chainID to perform multiple operations on different chains.

For example, if a developer wants to send two transactions, one on the Ethereum mainnet and another on Solana, then they just need to call the sendtransaction API with different chain IDs in the request body.

Following are the common APIs implemented for all the various chains:-

NameTypeDescription

getbalance

Read

Get the balance or number of the given token in the requested public address.

getblock

Read

Get details of a block.

getgasprice

Read

Get the current gas price from the network.

getstorage

Read

Get data stored in the given slot.

gettransaction

Read

Get details of a transaction.

Read

Get the RPC of required chain.

getgasfees

Read

Retrieves gas fee spent in a particular range.

getusertransactions

Read

Get the historical transaction details for a specific user address. Available on Ethereum, Binance Smart Chain, Avalanche - P/C/X, Polygon, Fantom, Stellar and TON.

gethistoricalrewards

Read

Get the historical transaction details focusing on staking rewards for a specific user address. Available on Avax-P.

getevents

Read

Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers. Currently available on Stellar.

getlatestledger

Read

Get details for the current latest known ledger of the node. Currently available on Stellar.

portfolio

Read

Get detailed information about the verified assets or tokens currently associated with a user's wallet address. Available on Ethereum as well as Arbitrum, Avalanche, Base, Binance Smart Chain, Cronos, Fantom, Near, Optimism, Polygon, Stellar and Solana.

getflashbotblocks

Read

Get details of the flashbot blocks.

getflashbottransactions

Read

Get details of the flashbot transactions.

getflashbotbundle

Read

Get details of the specified flashbot bundle.

settrustline

Write

Implement a trustline between issuer and distributor. Currently available on Stellar.

createaccount

Write

Create and fund a new account using the public key as the account ID. Currently available on Stellar.

rwa/issue

Write

Executes a payment operation to create (or mint) an asset on the Stellar network.

rwa/freeze

Write

Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account on the Stellar network.

rwa/burn

Write

Executes a transaction to burn or delete an asset on the Stellar network.

rwa/transfer

Write

Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account on the Stellar network.

sendtransaction

Write

Sign and send transactions on the chain.

simulatetransaction

Write

Submit a trial contract invocation to simulate how it would be executed by the network. This endpoint calculates the effective transaction data, required authorizations, and minimal resource fee. It provides a way to test and analyze the potential outcomes of a transaction without actually submitting it to the Stellar network.

genericsmartcontractmethod

Write

Calls read functions of verified smart contracts. Available on ethereum.

decodetransaction

Write

Get the decoded transaction for the provided raw transaction. Available on ethereum, binance, avalanche, polygon, cronos, arbitrum, fantom, optimism, solana, stellar and near.

Every chain requires a different set of parameters to perform the common operations. Please refer to the sub-sections for details.

To perform sendtransaction() successfully, the user needs to sign the transaction first.

For more details, click here.

If the user wants to pass the RPC manually, the user can either use their own RPC or use our provided RPC, by using /getpublicrpc endpoint.

/getpublicrpc

Get the RPC of required chain.

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

Query Parameters

NameTypeDescription

chainId*

String

Refer to the Chain ID page for details.

https://api.expand.network/chain/getpublicrpc?chainId=1000

Following is a sequence diagram for sendTransaction() process in chains:-

Last updated

#553: ENC-2526-LIDO

Change request updated