Socket
Book a DemoInstallSign in
Socket

ton-contracts

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ton-contracts

[![Version npm](https://img.shields.io/npm/v/ton-contracts.svg?logo=npm)](https://www.npmjs.com/package/ton-contracts)

latest
Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
465
32.1%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 15 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts