Links
💠

Transfer Items

Use this method to transfer multiple Items from the same collection.
To transfer items in-game, you must have minted your items using the developer wallet.

Usage in your script

TransferItems
.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
Address of the collection
token_id
String
Yes
Item iD
amount
String
Yes
amount of item to transfer
to_addr
String
Yes
target wallet address
.onError()
Action on Error: returns error information.
.onComplete()
Action on successful: returns Transfer_modeltype.
.Run()
Runs the API call and fills the corresponding model in the component on success.