Skip to content
Discussion options

You must be logged in to vote

There are two different functions.

This one only transfers coins if the account already exists on-chain: 0x1::coin::transfer. Code.
This one will create the account first if it doesn't exist yet: 0x1::aptos_account::transfer. Code.
You can see in the second code link that it first checks if the account exists and creates it if it doesn't, and then calls 0x1::coin::transfer.

Replies: 1 comment

Comment options

0x-j
Mar 6, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by 0x-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move Questions related to the Move Language
1 participant