Move.

Post

Share your knowledge.

farshad.
Mar 27, 2025
Expert Q&A

How can I allow token transfers by another wallet with limits?

I'm trying to figure out how to let another wallet transfer tokens on my behalf using Solidity but with some restrictions on the amount. How can I achieve this?

  • Move CLI
0
2
Share
Comments
.

Answers

2
Forever_A-gator.
Mar 28 2025, 04:34

In Solidity, you can use the approve and transferFrom functions to allow another wallet to transfer tokens on your behalf up to a certain limit. You would use approve to set the maximum amount that can be transferred and the other wallet would use transferFrom to execute the transfer.

2
Best Answer
Comments
.
Dominikus .
Mar 28 2025, 09:06

Alternatively, consider using a multisig wallet which allows setting up multiple signers with specific weightages. This way, you can define the conditions under which tokens can be transferred, essentially setting up restrictions that fit your needs.

2
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