Get a User's ERC20 Balance
Get ERC20 balance of user
Usage in your script
Member Functions
.Initialize()
Parameter | Type | Required | Description |
---|---|---|---|
| bool | Optional | defines if this component will be destroyed after |
.SetParameters()
Parameter | Type | Required | Description |
---|---|---|---|
tokenAddress | String | Yes | the token contract address |
chainId | String | Yes | The chain id |
userAddress | String | Yes | address of user |
.onError()
Action on Error: returns error information.
.onComplete()
Action on successful: returns ERC20 balance of user.
.Run()
Runs the API call and fills the corresponding model in the component on success.
Last updated