Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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)

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc