Foundational Concepts
Drops vs. Keys
Keypom revolves around collections of Access Keys called Drops.
- Access Key: A NEAR keypair, this is what each user receives to start their Keypom experience.
- Can have assets, such an NFT, FTs, NEAR or FunctionCalls, associated with them.
- When a user receives a key and uses it, they will receive those assets.
- Drop: A collection of access keys that all share the same traits - such as assets and configurations.
- As a funder, you create the drop and fund all the assets
- You can add as many keys as you want to the drop, even after its creation.
An easy way to think about it is that you create a drop but you distrubute keys.
What are Assets?
In the Keypom Protocol, an asset it something you attach to every key in your drop. When someone obtains and uses a key, they will receive the assets - either to a new or existing account.
Assets can be NEAR, Fungible Tokens, Non-Fungible Tokens, or FunctionCalls. Each key in a drop holds the same assets, meaning a user can receive any key from the drop and be guarenteed the same set of assets.
Access Keys can have multiple uses and their assets are defined per use. These can be mix-and-matched to craft any experience you want. An example can be seen below:
| Key Use | Assets |
|---|---|
| 1 | NEAR, FunctionCall, Fungible Token |
| 2 | Non-Fungible Token |
| 3 | Fungible Token, NEAR |
This means when the user claims their key for the first time, they will receive a FT, some NEAR and call a set of functions. On the second claim, they will receive an NFT while on the third and final claim, they will receive some NEAR and FTs.
This behaviour is the same accross all the keys in the drop. As the drop funder, you would need to ensure your drop has all the necessary assets to fund all of the keys. Following the above example, if each FT asset represents 1 Go-Team Token and you have 10 keys, you would need to fund your drop with 20 Go-Team Tokens. For more on how to use each asset, see the pages below.