Skip to main content
POST
cURL

Body

application/json
from
string<address>
required

legacy source wallet to drain

to
string<address>
required

destination wallet TON address

currency
string
default:USD

fiat currency for the preview values

Example:

"USD"

public_key
string

hex-encoded ed25519 public key of the source wallet. If from wallet is uninitialized, then public_key is used to infer wallet code

Example:

"29c1a72938b8f4f1d4e64f1e3f73e4b0e60f9b0c0e0d0e0f0a0b0c0d0e0f0a0b0"

gas_payer
enum<string>
default:self

Who pays the gas:

  • self — the source wallet pays, as usual
  • battery — asset transfers are sponsored by the Tonkeeper Battery
  • gasless — source wallet pays with jetton, in this case gas_jetton_master is required too (only from this list: /v2/gasless/config)
Available options:
self,
battery,
gasless
gas_jetton_master
string<address>

Master address of jetton that should be used to cover transactions fees. Must be supported by /v2/gasless/config and held by the source wallet.

Response

ordered transactions to sign and broadcast

from
string<address>
required
to
string<address>
required
wallet_version
string
required

source wallet version (informational)

Example:

"v4R2"

transactions
object[]
required

ordered; sign and broadcast in array order, one entry per external message