@defi-wonderland/solana-token-locking
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

(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

Dependencies (9)

Dev Dependencies (17)

Package Sidebar

Install

npm i @defi-wonderland/solana-token-locking

Weekly Downloads

1,282

Version

1.0.1

License

MIT

Unpacked Size

34.1 kB

Total Files

17

Last publish

Collaborators

  • wonderland-bot
  • gas1cent
  • 0xng
  • 0xgorilla
  • kelvinfichter
  • wei3erhase