๐ชTransfer ERC20
Use this method to transfer an ERC721 token.
Usage in your script
TransferErc20
.Initialize(destroyAtEnd: true)
.SetParameters(
contract_addr: "0x...",
chainId: "97",
amount: "10",
to_addr: "0x..."
)
.OnError(error => Debug.Log(error))
.OnComplete(result => Debug.Log(result))
.Run();
Member Functions
.Initialize()
Parameter
Type
Required
Description
destroyAtEnd
bool
Optional
defines if this component will be destroyed after .Run()
.SetParameters()
Parameter
Type
Required
Description
contract_addr
String
Yes
the token contract address
chainId
String
Yes
The chain id
amount
String
Yes
the amount of tokens to transfer
to_addr
String
Yes
address of receiver
.onError()
Action on Error: returns error information.
.onComplete()
Action on successful: returns Transfer_model
type.
.Run()
Runs the API call and fills the corresponding model in the component on success.
Last updated
Was this helpful?