LinkDrop Send
How does it work?
LinkDrop allows any user to create a link that their friends can use to claim tokens even if they don't have an account yet.
LinkDrop Send works in the following way:
The Sender creates a new key pair (pk1, privkey1). Calls linkdrop.send(pk1) with attached balance of NEAR that they want to send. Sends a link to any supported wallet app with privkey1 as part of URL.
The Receiver receives a link to the wallet with privkey1. The wallet creates new key pair for this user (pk2, privkey2).
The receiver enters the new_account_id receiver they want for their new account.
The wallet creates a transaction to linkdrop.create_account_and_claim(new_account_id, pk2).
The contract creates new account with new_account_id name and pk2 as full access key and transfers NEAR that Sender sent.
If Receiver already has an account (or Sender wants to get back the money):
Sign tx with privkey1 to call linkdrop.claim(), which transfers money to signer's account.
Last updated