Transfer link allows to create and send TON transactions from Tonhub with an HTTP request.
This page describes how transfer links are structured.
As always, you can use the Sandbox environment for testing and development.
To create link for sandbox, use https://test.tonhub.com/ (ton-test://transfer) endpoint instead of https://tonhub.com/ (ton://transfer)
The link follows this format
Query parameters you can specify:
|amount||Required||The amount of the transaction in nano TONs/Jettons|
|text||Optional||Comment on the transaction, if the bin is specified, it is the purpose of the transaction|
|bin||Optional||Binary payload of the transaction, serialized as base64 BOC|
|init||Optional||State init, serialized as base64 BOC|
|jetton||Optional||Jettons Master address for jetton transfers|
This link is used for sending 0.5 TON to kQDvRFMYLdxmvY3Tk-cfWMLqDnXF_EclO2Fp4wwj33WhlGrZ
This link is used for Deposit in Ton Whales Staking Pools. You can see how it was used here, in Deposit via Tonhub button.
This link is used for deploying the contract (init) and contains the first message (bin). Also, there is a text, so the purpose of the transaction is "Deploy contract"
This link is used for sending Jettons via link. Note that you will loose init & bin params when you add jetton
Updated 6 months ago