Migration

Prepare ordered signable transactions that migrate every asset from from to to.

post/v2/migration/prepare

Request body

currencystring

fiat currency for the preview values

fromstring address required

legacy source wallet to drain

gas_jetton_masterstring 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.

gas_payer'self' | 'battery' | 'gasless'

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)
public_keystring

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

tostring address required

destination wallet TON address

Example request

{
  "currency": "USD",
  "public_key": "29c1a72938b8f4f1d4e64f1e3f73e4b0e60f9b0c0e0d0e0f0a0b0c0d0e0f0a0b0"
}

Response

ordered transactions to sign and broadcast

fromstring address required
tostring address required
wallet_versionstring required

source wallet version (informational)

Changes

No recorded changes to this endpoint across all 1 revision of this API.