Transfer link
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/ endpoint instead of https://tonhub.com/
The link follows this format
https://tonhub.com/transfer/{ADDRESS}?amount=5000000000
Query parameters you can specify:
Parameter | Req | Description |
---|---|---|
amount | Required | The amount of the transaction in nano TONs |
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 |
Examples
Send TON to address
This link is used for sending 0.5 TON to kQDvRFMYLdxmvY3Tk-cfWMLqDnXF_EclO2Fp4wwj33WhlGrZ
https://test.tonhub.com/transfer/kQDvRFMYLdxmvY3Tk-cfWMLqDnXF_EclO2Fp4wwj33WhlGrZ?amount=500000000
Send TON to address with the comment
This link is used for Deposit in Ton Whales Staking Pools. You can see how it was used here, in Deposit via Tonhub button.
https://tonsandbox.com/staking/pool/kQBs7t3uDYae2Ap4686Bl4zGaPKvpbauBnZO_WSop1whaLEs
https://test.tonhub.com/transfer/EQBs7t3uDYae2Ap4686Bl4zGaPKvpbauBnZO_WSop1whaAqm?text=Deposit
Deploying contract
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"
https://tonhub.com/transfer/${address}?text=Deploy%20contract&amount=500000000&init=${stateInit}&bin=${payload}
Updated 5 months ago