SDK
Last updated
Last updated
This section contains information about SDK for tonfun protocol
SDK is written in TypeScript. It's designed to be a layer between your code, contracts and tonfun backend. It could be used both on backend and frontend.
SDK is build using package and contains wrapper for all contracts. It also relies on for transaction status fetching and on our backed for obtaining coins information.
npm install ton-bcl-sdk
yarn add ton-bcl-sdk
You can create instance of SDK this way:
For test environment you can use this parameters:
BCL Master address - EQBSMwczMFUb789uqNvebKBvemkRaAQJdzTFq6565Ef9rW2k
TonFun api address - https://test-indexer-3a4wy.ondigitalocean.app/api/v1
Test coin parameters:
commission is 1%
emission that is sold is 800M
emission that is minted to STON.fi is 200M
total emission is 1000M
it costs ~3 TON to buyout whole 800M tokens
trading close fee is 0 TON
You can find detailed SDK reference