transfer operation.
Funds at riskEach jetton stores a
decimals parameter in its metadata. Transferring without accounting for decimals can result in sending 1000 times the intended amount—irreversible on mainnet.Mitigation: Always retrieve and apply the correct decimals value. Test on testnet first. Read decimals parameter for details.forward_payload field, and forward_ton_amount is some amount of toncoin attached to let the receiving wallet process the message.
Format of forward_payload for comments and other kinds of attached data can be found in the API section. If forward_ton_amount is 0, forward_payload doesn’t have to comply with the schema.
A single manual transfer can be done with a web service (for example, Minter).
A programmatic transfer is usually done with an SDK (for example, assets-sdk) that handles low-level message serialization details. The provided example uses TON Center API that might require a key. Also you’ll need a mnemonic of a wallet that will pay for the transfer.
Funds at riskBeware that API keys and mnemonic must not be committed or shared publicly.A better approach is to use a
.env file that is excluded from repository with .gitignore. For Github CI purposes, consult their documentation.