Skip to main content
POST
/
deposit
Create deposit
curl --request POST \
  --url https://api.leokit.dev/deposit \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quote_id": "019b4c96-e47b-7000-afd4-17252097b092",
  "protocol": "thorchain"
}
'
{
  "type": "EVM",
  "protocol": "mayachain",
  "quote_id": "019b4c96-e47b-7000-afd4-17252097b092",
  "details": {
    "from_asset": "ETH.ETH",
    "to_asset": "BTC.BTC",
    "from_address": "0xacd9a974065de9c7a19873f95af7595e1d632167",
    "to_address": "bc1q2hk2q3zy7pdh0tp4awzn4k5lyetedaue5zt88r",
    "amount": "1",
    "network": "ETH",
    "decimals": 18
  },
  "unsigned_transactions": [
    {
      "to": "0xe3985e6b61b814f7cdb188766562ba71b446b46d",
      "from": "0xacd9a974065de9c7a19873f95af7595e1d632167",
      "data": "0x44bc937b000000000000000000000000d5a863ae258e36de691bc6a3e2de96ffaf22ebfc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000694aeaa800000000000000000000000000000000000000000000000000000000000000343d3a623a6263317132686b3271337a79377064683074703461777a6e346b356c7965746564617565357a743838723a302f332f31000000000000000000000000",
      "value": "1000000000000000000",
      "gasLimit": 180000,
      "type": 2,
      "maxFeePerGas": "1580264892",
      "maxPriorityFeePerGas": "1500000000",
      "chainId": 1,
      "nonce": 245
    }
  ]
}

Authorizations

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Body

application/json

Request body for /deposit.

quote_id
string<uuid>
default:019b4c96-e47b-7000-afd4-17252097b092
required

Quote identifier returned from /quote.

Example:

"019b4c96-e47b-7000-afd4-17252097b092"

protocol
string
default:thorchain
required

Protocol to use for deposit generation.

Example:

"thorchain"

Response

Deposit created

Deposit generation response containing unsigned transactions to sign per network type.

type
enum<string>
required

Network family used for signing/broadcasting.

Available options:
EVM,
COSMOS,
UTXO
protocol
string
required

Protocol selected for execution (e.g., mayachain).

quote_id
string<uuid>
required

Quote identifier used to generate this deposit.

details
object
required

Normalized deposit context used to construct unsigned transactions.

unsigned_transactions
object[]
required

Prepared raw transaction(s) you must sign and broadcast. The item shape depends on type.

Prepared EVM transaction object to sign and broadcast.