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
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
tokenAddress* | String | Address of token. |
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
/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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for more details. |
chainSymbol | String | Refer to the Chain ID page for more details. |
/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
Name | Type | Description |
---|---|---|
chainId* | String | Refer to the Chain ID page for details. |
tokenAddress* | String | Address of the token. |
address* | String | Public Address of the user |
chainSymbol | String | Refer to the Chain ID page for details. |
/historical/transactions
Retrieves all the transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/transactions
Query Parameters
Name | Type | Description |
---|---|---|
chainId | String | Refer to the Chain ID page for details. |
address | String | Public Address of the user |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
chainId | String | Refer to the Chain ID page for details. |
address | String | Public Address of the user |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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
Name | Type | Description |
---|---|---|
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 | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
gasPriority | String | low, medium, or high. |
With gasPriority(medium):
Last updated