ton-contracts
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

TON contracts

Version npm

Collection of tested smart contracts for TON blockchain that is compatible with ton js library.

Available contracts

  • 🚀 Whitelisted Wallet - wallet that by default could send value only to specific address and master key that can send value anywhere.

Install

yarn add ton-contracts

Usage

const client = new TonClient({ endpoint: 'https://testnet.toncenter.com/api/v2/jsonRPC' });
const wallet = await client.openWalletFromCustomContract(WhitelistedWalletSource.create({
    masterKey: masterKey.publicKey,
    restrictedKey: restrictedKey.publicKey,
    whitelistedAddress: whitelistedWallet.wallet.address,
    workchain: 0
}));

// Use wallet as normal wallet

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ton-contracts

Weekly Downloads

117

Version

3.1.0

License

MIT

Unpacked Size

257 kB

Total Files

116

Last publish

Collaborators

  • mrmld
  • tonwhales