Links
💠

Transfer Item

Use this method to transfer an Item.

Usage in your script

TransferItem
.Initialize(destroyAtEnd: true)
.SetParameters(
collection_addr: "0x...",
token_id: "10",
amount: "1",
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
collection_addr
String
Yes
The item's collection address
token_id
String
Yes
The item's tokenId
amount
String
Yes
The quantity of this particular item you wish to transfer
to_addr
String
Yes
The recipient's EVM-compatible address (0x...)
.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.