Skip to content

delab-team/ton-network-react

Repository files navigation

ton-network-provider

license mit typescript

The @delab-team/ton-network-provider library .

Install

yarn add @delab-team/ton-network-provider

Usage

import { ProviderTonConnect } from '@delab-team/ton-network-react'
import { TonConnectUI } from 'delab-tonconnect-ui'

const isTestnet = true
const provider = new ProviderTonConnect(TonConnectUI, isTestnet)

await provider.sunc() // required for loading endpoint TonClient4

const contractOpened = this._provider.open(contract)

await contractOpened.deploy(provider.sender(), '1000000')

An example of use can be seen here - https://github.com/delab-team/de-donate/blob/main/src/logic/smart.ts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •