Linkdrops allow users to distribute assets and onboard people to Web3 apps through a simple web link.They work by storing assets and linking AccessKeys to them. The AccessKeys are then distributed to users in the form of web links. These links take users to a website that automatically uses the keys to call the claim method in the linkdrop contract.In order for a contract to be considered a Linkdrop-contract it has to follow the NEP-452 standard. The NEP-452 explains the minimum interface required to be implemented, as well as the expected functionality.
NEP-452 is the blueprint for all linkdrop contracts on NEAR. It defines a common set of rules and functions that the contract MUST implement to be considered a linkdrop contract.
Notice that the NEP-452 defines the interface and expected behavior of a linkdrop contract, but it does not dictate how the internal logic should be implementedDifferent linkdrop contracts can have different internal implementations while still adhering to the NEP-452 standard
Returns information about a specific linkdrop key, including the amount of NEAR tokens assigned to it, the receiver ID, and whether the key has been claimed
Allows a user to claim the assets associated with a specific key. The function transfers the NEAR tokens, NFTs, and FTs assigned to the provided account_id, which MUST exist prior to calling this method.
⚠️ Users need to call this method signing the transaction with the linkdrop key they received.
Allows a user to create a new account and claim the assets associated with a specific key. The function creates the new account with the provided new_account_id and transfers the NEAR tokens, NFTs, and FTs assigned to it.
⚠️ Users need to call this method signing the transaction with the linkdrop key they received.