ERC20
/gettokendetails
Get the name, symbol and decimals of provided token address. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/gettokendetails
Query Parameters
/getuserallowance
Get the amount that the spender is allowed to withdraw on behalf of the owner. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/getuserallowance
Query Parameters
/getuserbalance
Get the balance of the given token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/getuserbalance
Query Parameters
/historical/transactions
Retrieves all the transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/transactions
Query Parameters
address
String
Public Address of the user
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
address
String
Public Address of the user
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
/historical/logs
Retrieves all the logs for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/logs
Query Parameters
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
/approve
Sets amount as the allowance of spender over the user’s tokens. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
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.
gasPriority
String
low, medium, or high.
With gasPriority:
/transfer
Moves amount tokens from the user’s account to the recipient. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
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.
gasPriority
String
low, medium, or high.
With gasPriority:
/transferfrom
Transfers tokens from sender to recipient using the allowance mechanism. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
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.
reciever*
String
Receiver of the tokens.
gasPriority
String
low, medium, or high.
With gasPriority:
/convertbasetokentowraptoken
Converts base token to wrap token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
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.
gasPriority
String
low, medium, or high.
With gasPriority:
/convertwraptokentobasetoken
Converts wrap token to base token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
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.
gasPriority
String
low, medium, or high.
With gasPriority(medium):
Last updated