0.8.1 • Published 1 year ago

@ton-defi.org/ton-connection v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Ton Connection

A library for connecting to ton

Description

=> Note: This library is in alpha. Use at your own risk.

The library currently the following operations: 1. Retrieving a wallet details 2. Sending a transaction

Current supported wallet providers are:

  • Tonhub (via ton-x connector)
  • Ton wallet chrome extension
  • Mnemonic-based provider

Usage

const tonHubCon = new TonConnection(
  new TonhubProvider({
    isSandbox: true,
    onSessionLinkReady: (session) => {
      // For example, display `session.link` as a QR code for the mobile tonhub wallet to scan
    },
    persistenceProvider: localStorage, // If you want the persist the session
  }),
  EnvProfiles[Environments.SANDBOX].rpcApi
);
const wallet = await tonHubCon.connect(); // Get wallet details

// Send a transaction
await tonHubCon.requestTransaction(...)

Future

  • Support disconnection
  • Support transaction details (exit code)
  • Support get methods
0.8.1

1 year ago

0.8.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.17

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago