⚡Fungible Tokens
Last updated
Last updated
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 |
---|---|---|
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. |
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:-