TokenOS
Search
K
Comment on page

Allocations

The allocation object

The TokenOS distribution system is based upon the concept of allocations. An allocation represents an entry inside our distribution contract.
Once forged, an allocation (or airdrop) is immutable. It cannot be changed.

Retrieve allocation

get
http://localhost:8080/v1
/allocations/{allocationId}
Get one allocation detail
get
http://localhost:8080/v1
/allocations
Search for allocations

Transfer allocation to user's wallet

After the airdrop is created for a user, they must claim their airdrop - a process that requires the payment of gas fees.
If you would like to provide a more seamless experience for your users and directly deposit tokens into your users' wallets, you can use the following endpoint to pay the gas fees for the user's airdrop. This will require you to have ETH in a wallet, that you'll continuously need to top up as gas fees are paid.
post
http://localhost:8080/v1
/allocations/{allocationId}/transfer
Execute allocation for user, paying from your gas wallet