1.3.0 • Published 9 months ago
@tonfura/adapter v1.3.0
@tonfura/adapter
TONX JS adapter is an easy integration tool with popular ton client libraries.
Usage
Before using it, you will need to get a key from TONX API.
ton/core
import { ToncoreAdapter } from "@tonfura/adapter";
const client = new ToncoreAdapter({
network: "mainnet",
apiKey: "YOUR_API_KEY",
});
tonweb
import { TonWebAdapter } from "@tonfura/adapter";
const client = new TonWebAdapter({
network: "mainnet",
apiKey: "YOUR_API_KEY",
});
TonClient4
import { TonClient4Adapter } from "@tonfura/adapter";
const client = new TonClient4Adapter({
network: "mainnet",
apiKey: "YOUR_API_KEY",
});