Chain Adapters
Ton Chain Adapter
You can either create a TON chain adapter from a TonConnectUI instance or from a TON private key:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { getTonChainAdapter } from '@rhino.fi/sdk/adapters/ton'
const chainAdapter = getTonChainAdapter(
tonConnectUI,
chainConfig,
rpcUrl,
)
import { getTonChainAdapterFromSecretKey } from '@rhino.fi/sdk/adapters/ton'
const chainAdapter = getTonChainAdapterFromSecretKey(
'YOUR_PRIVATE_KEY',
'YOUR_PUBLIC_KEY',
chainConfig,
rpcUrl,
)