@larskarbo/bonfida-token-vesting
v0.0.11
Published
## Example
Downloads
1
Readme
Simple JS bindings
Example
A linear unlock example can be found in example.ts
Quickstart
Contract address on Devnet
DLxB9dSQtA4WJ49hWFhxqiQkD9v6m67Yfk9voxpxrBs4
Contract address on Mainnet
CChTq6PthWU82YZkbveA3WDf7s97BWhBK4Vx9bmsT743
The code allows you to
- Create vesting instructions for any SPL token:
createCreateInstruction
- Create unlock instructions:
createUnlockInstruction
- Change the destination of the vested tokens:
createChangeDestinationInstruction
(To import Solana accounts created with Sollet you can use getAccountFromSeed
)
Seed 9043936629442508205162695100279588102353854608998701852963634059
Vesting contract account pubkey: r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
contract ID: 90439366294425082051626951002795881023538546089987018529636340fe
✅ Successfully created vesting instructions
🚚 Transaction signature: 2uypTM3QcroR7uk6g9Y4eLdniCHqdQBDq4XyrFM7hCtTbb4rftkEHMM6vJ6tTYpihYubHt55xWD86vHB857bqXXb
Fetching contract r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
✅ Successfully created unlocking instructions
🚚 Transaction signature: 2Vg3W1w8WBdRAWBEwFTn2BtMkKPD3Xor7SRvzC193UnsUnhmneUChPHe7vLF9Lfw9BKxWH5JbbJmnda4XztHMVHz
Fetching contract r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
✅ Successfully changed destination
🚚 Transaction signature: 4tgPgCdM5ubaSKNLKD1WrfAJPZgRajxRSnmcPkHcN1TCeCRmq3cUCYVdCzsYwr63JRf4D2K1UZnt8rwu2pkGxeYe