1

How can I send native tokens from a contract address to a user/externally owned account using an Ink smart contract?

1 Answer 1

2

By using transfer. See example here

        self.env()
            .transfer(recipient, amount)
            .map_err(|_| Error::TrasnferError)?;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.