1

the network will automatically create the account for that address when it receives the tokens.is that right?who will affort to create the receiver address account?

1 Answer 1

1

One of two things:

  1. If you send less than the rent exempt balance (at the time of this writing 0.00089088 SOL) it will simply fail, as any account needs to end up with either 0 or sufficient balance to be rent exempt after each transaction. You can find the current rent exempt amount an account that doesn't store any extra data needs using solana rent 0 with the cli.
  2. If you send more than that, the transaction will be successful and the account will be credited with however much SOL you sent it. No one will be able to withdraw it. (In theory, if a private key for the account you just sent to exists someone could find it, but in practice the chances of this are so astronomically small that it will never, ever, EVER happen.)
2
  • thanks a lot,if the address is out of the curve,the transcation will fail?does the create process need call the program.createaccount function?
    – qimeila
    Commented Jul 12 at 1:50
  • No, wether the address is on curve or not doesn't matter in this regard. And no, a normal transfer will do what I described already, no need to call createAccount
    – McBain
    Commented Jul 12 at 7:31

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.