Move.

Post

Share your knowledge.

CarlkawIy.
Nov 27, 2024
Expert Q&A

SUI transfer in Smart Contract code

How can I correctly implement the transfer of SUI to a specific wallet address using smart contract code?

  • Move CLI
  • Smart Contract
3
3
Share
Comments
.

Answers

3
Dominikus .
Nov 27 2024, 21:55

You can find a detailed explanation and examples in the Move book (https://move-book.com/storage/storage-functions.html#transfer).

1
Best Answer
Comments
.
Xavier.eth.
Nov 28 2024, 01:30

To send any object to a specific wallet address through your smart contract, you can use the transfer::public_transfer function provided by the Sui framework.

2
Comments
.
deriss.
Nov 27 2024, 19:23

Ensure that you are using a mutable coin type in your function parameters, i.e., coin: &mut Coin<SUI>.

1
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info