GET
https://api.expand.network/fungibletoken/gettokendetails
Name | Type | Description |
---|---|---|
GET
https://api.expand.network/fungibletoken/getuserallowance
Name | Type | Description |
---|---|---|
GET
https://api.expand.network/fungibletoken/getuserbalance
GET
https://api.expand.network/fungibletoken/historical/transactions
GET
https://api.expand.network/fungibletoken/historical/weth
GET
https://api.expand.network/fungibletoken/historical/logs
POST
https://api.expand.network/fungibletoken/approve
With gasPriority:
With gasPriority:
POST
https://api.expand.network/fungibletoken/transfer
With gasPriority:
With gasPriority:
POST
https://api.expand.network/fungibletoken/transferfrom
With gasPriority:
With gasPriority:
POST
https://api.expand.network/fungibletoken/convertbasetokentowraptoken
With gasPriority:
With gasPriority:
POST
https://api.expand.network/fungibletoken/convertwraptokentobasetoken
With gasPriority(medium):
With gasPriority:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
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.
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.
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
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
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
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.
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.
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.
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.
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.
GET
https://api.expand.network/weth/getbalance
Name | Type | Description |
---|---|---|
GET
https://api.expand.network/weth/historical/logs
Name | Type | Description |
---|---|---|
Provides functionalities to transfer tokens, allows others to transfer tokens on behalf of the token holder, and converts base to wrap token and vice versa.
Following are the common functions implemented for the Fungible Tokens:-
Name | Type | Description |
---|---|---|
Following is a sequence diagram for approve() process:-
Following is a sequence diagram for transfer() process:-
Following is a sequence diagram for transferFrom() process:-
Following is a sequence diagram for convertBaseTokenToWrapToken() process:-
Following is a sequence diagram for convertWrapTokenToBaseToken() process:-
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 to get the balance of.
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 latestBlock -100
endBlock
String
Last block of the range.
by default its latestBlock
type*
String
Deposit/Withdrawal
gettokendetails
Read
Get the name, symbol and decimals of provided token address.
getuserallowance
Read
Get the amount that the spender is allowed to withdraw on behalf of the owner.
getuserbalance
Read
Get the balance of the given token for the provided public address.
historical/transactions
Read
Retrieves all the transfers for the given address in the given range.
historical/weth
Read
Retrieves all the WETH transfers for the given address in the given range.
historical/logs
Read
Retrieves all the logs for the given address in the given range.
approve
Write
Sets amount as the allowance of spender over the user's tokens.
transfer
Write
Moves amount tokens from the user’s account to the recipient.
transferfrom
Write
Moves amount tokens from sender to recipient using the allowance mechanism.
convertbasetokentowraptoken
Write
Converts base token to wrap token.
convertwraptokentobasetoken
Write
Converts wrap token to base token.