-
Beta Was this translation helpful? Give feedback.
Answered by
0x-j
Mar 6, 2024
Replies: 1 comment
-
There are two different functions. This one only transfers coins if the account already exists on-chain: |
Beta Was this translation helpful? Give feedback.
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
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
.