ERC20
/gettokendetails
Get the name, symbol and decimals of provided token address. Currently available on EVM chains and Near
GET
https://api.expand.network/fungibletoken/gettokendetails
Query Parameters
rpc
String
Remote procedural call URL.
tokenAddress*
String
Address of token.
chainId
String
chainSymbol
String
/getuserallowance
Get the amount that the spender is allowed to withdraw on behalf of the owner. Currently available on EVM chains and Tron
GET
https://api.expand.network/fungibletoken/getuserallowance
Query Parameters
tokenAddress*
String
Address of the token.
owner*
String
Public address of the owner.
spender*
String
Public address of the spender.
rpc
String
Remote procedural call URL.
chainId
String
chainSymbol
String
/getuserbalance
Get the balance of the given token. Currently available on EVM chains
GET
https://api.expand.network/fungibletoken/getuserbalance
Query Parameters
chainId*
String
tokenAddress*
String
Address of the token.
address*
String
Public Address of the user
chainSymbol
String
/historicaltransactions
Retrieves all the transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historicaltransactions
Query Parameters
chainId
String
address
String
Public Address of the user
chainSymbol
String
startBlock
String
Starting block of the range.
by default latestBlock -100
endBlock
String
Last block of the range.
by default its latestBlock
page
String
page to get response on,
by default its 1
sort
String
asc/desc sorting method,
by default its desc
tokenAddress*
String
address of the erc20 token
/historical/weth
Retrieves all the WETH transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/weth
Query Parameters
chainId
String
address
String
Public Address of the user
chainSymbol
String
startBlock
String
Starting block of the range.
by default latestBlock -100
endBlock
String
Last block of the range.
by default its latestBlock
page
String
page to get response on,
by default its 1
sort
String
asc/desc sorting method,
by default its desc
/historicallogs
Retrieves all the logs for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historicallogs
Query Parameters
chainId
String
chainSymbol
String
startBlock
String
Starting block of the range.
by default its (latestBlock -100)
endBlock
String
Last block of the range.
by default its latestBlock
tokenAddress*
String
address of the erc20 token
type*
String
Approval/Transfer logs
/historicalusertransactions
Retrieves all the ERC-20 transfers for the given address. Currently support for all EVM chains-Except zksync-era
GET
https://api.expand.network/fungibletoken/historicalusertransactions
Query Parameters
chainId
String
chainSymbol
String
address*
String
Public Address of the user
tokenAddress*
String
ERC-20 token address
startBlock
String
Starting block of the range.
by default latestBlock -100
endBlock
String
Last block of the range.
by default its latestBlock
pageSize
String
page to get response on,
by default its 1
pageToken
String
Present at the top of a lengthy response to fetch the next page.
sortOrder
String
asc/desc sorting method,
by default its desc
fromTimestamp
String
The start date from which to get the transactions ( format in seconds or date string ) Note-If 'fromTimestamp' and 'startBlock' are provided, 'startBlock' will be used. By default, the Genesis block timestamp
toTimestamp
String
The end date from which to get the transactions ( format in seconds or date string ) Note- If 'toTimestamp' and 'endBlock' are provided, 'endBlock' will be used.
By default, the current block timestamp
startBlock
String
The starting block number from which to get the transactions. By default, the Genesis block
endBlock
String
The ending block number from which to get the transactions By default, the current block
/approve
Sets amount as the allowance of spender over the user’s tokens. Currently available on EVM chains, Solana and Tron
POST
https://api.expand.network/fungibletoken/approve
Request Body
rpc
String
Remote procedural call URL.
from*
String
Address of the sender of the token.
tokenAddress*
String
Address of token.
amount*
String
Number of tokens.
to*
String
Address to get approval of.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
chainId
String
chainSymbol
String
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority:
With ofacCheck:
/transfer
Moves amount tokens from the user’s account to the recipient. Currently available on EVM chains and Solana
POST
https://api.expand.network/fungibletoken/transfer
Request Body
rpc
String
Remote procedural call URL.
from*
String
Address of the sender of the token.
tokenAddress*
String
Address of token.
amount*
String
Number of tokens.
to*
String
Address of the recipient of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
chainId
String
chainSymbol
String
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority:
With ofacCheck:
/transferfrom
Transfers tokens from sender to recipient using the allowance mechanism. Currently available on EVM chains
POST
https://api.expand.network/fungibletoken/transferfrom
Request Body
rpc
String
Remote procedural call URL.
from*
String
Address of the sender of the token.
tokenAddress*
String
Address of token.
amount*
String
Number of tokens.
to*
String
Address, on whose behalf, tokens are spent.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
chainId
String
chainSymbol
String
reciever*
String
Receiver of the tokens.
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority:
With ofacCheck:
/convertbasetokentowraptoken
Converts base token to wrap token. Currently available on EVM chains.
POST
https://api.expand.network/fungibletoken/convertbasetokentowraptoken
Request Body
rpc
String
Remote procedural call URL.
from*
String
Address of the sender of the token.
tokenAddress*
String
Address of token.
amount*
String
Number of tokens.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
chainId
String
chainSymbol
String
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority:
With ofacCheck:
/convertwraptokentobasetoken
Converts wrap token to base token. Currently available on EVM chains.
POST
https://api.expand.network/fungibletoken/convertwraptokentobasetoken
Request Body
rpc
String
Remote procedural call URL.
from*
String
Address of the sender of the token.
tokenAddress*
String
Address of token.
amount*
String
Number of tokens.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
chainId
String
chainSymbol
String
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority(medium):
With ofacCheck:
Last updated