Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 481 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 481 Bytes

TON Config

Small library for working with TON config contract.

Installation

yarn add @ton-contract/config ton-core ton-crypto

Usage

import { ConfigContract, Config } from "@ton-contract/config";

// Load config from network
const config = client.open(ConfigContract.create());
const rawConfig: Dictionary<number, Cell> = await config.getRawConfig(); // Dictionary<number, Cell>
const config: Config = await config.getConfig();

License

MIT