tonweb
3
总安装量
3
周安装量
#55297
全站排名
安装命令
npx skills add https://github.com/hairyf/blockchain-skills --skill tonweb
Agent 安装分布
opencode
3
github-copilot
3
codex
3
kimi-cli
3
gemini-cli
3
cursor
3
Skill 文档
Based on tonweb v0.0.66, generated 2026-02-25.
TonWeb is the JavaScript API for the TON blockchain: wallet contracts, BOC/Cell, TonCenter HttpProvider, NFT/Jetton, DNS, payments, block subscription.
Core References
| Topic | Description | Reference |
|---|---|---|
| Overview | Installation, provider, root API | core-overview |
| TonWeb instance | Root class, getTransactions, getBalance, sendBoc, call | core-tonweb-instance |
| Address and utils | Address, toNano/fromNano, bytes/hex/base64, BN, nacl | core-address-utils |
| BOC | Cell, BitString, fromBoc/oneFromBoc | core-boc |
| Slice | Parsing BOC: beginParse, loadBit, loadUint, loadAddress, loadRef | core-slice |
| Contract base | deploy, methods, getQuery/send/estimateFee, createStateInit | core-contract |
| HttpProvider | getAddressInfo, getWalletInfo, sendBoc, call/call2 | core-http-provider |
| HttpProviderUtils | parseResponse, parseObject â parse get-method stack to BN/Cell | core-http-provider-utils |
| Transfer URL | parseTransferUrl, formatTransferUrl (ton://transfer/…) | core-transfer-url |
| Workchain | WorkchainId Master/Basic, wc for addresses and contracts | core-workchain |
| Utils extra | AdnlAddress, StorageBagId; keyPairFromSeed, newKeyPair, newSeed | core-utils-extra |
| Estimate fee | estimateFee on methods, getEstimateFee(boc) on provider | core-estimate-fee |
Features
| Topic | Description | Reference |
|---|---|---|
| Wallet | create, deploy, transfer, seqno, V2/V3/V4 | features-wallet |
| Highload wallet | HighloadWalletContractV3, HighloadQueryId | features-highload-wallet |
| Lockup wallet | liquid/locked/restricted balances | features-lockup-wallet |
| Lockup vesting | VestingWalletV1: vesting schedule, getLockedAmount, getVestingData | features-lockup-vesting |
| NFT | NftCollection, NftItem, NftMarketplace, NftSale | features-nft |
| Jetton | JettonMinter, JettonWallet, transfer, burn | features-jetton |
| NFT content & royalty | NftUtils: offchain URI cell, parseOffchainUriCell, getRoyaltyParams | features-nft-content-royalty |
| DNS | resolve, getWalletAddress, getSiteAddress | features-dns |
| Ledger | AppTon, getPublicKey, getAddress, sign, transfer; TransportWebUSB/HID/BLE | features-ledger |
| Payments | PaymentChannel, createChannel | features-payments |
| Block subscription | BlockSubscription, InMemoryBlockStorage | features-block-subscription |
| Subscription contract | Recurring payments: pay, getSubscriptionData | features-subscription |
| Wallet parsing | parseTransferQuery, parseTransferBody (V3/V4 transfer BOC) | features-wallet-parsing |
Best practices
| Topic | Description | Reference |
|---|---|---|
| Custom contract | Extend Contract, createDataCell, message builders | best-practices-custom-contract |
| Error handling | exit_code, parseResponse throws, provider/send errors | best-practices-error-handling |