Create Settlement

Create Settlement

post
Authorizations
Body
from_pledge_idstring · uuidRequired
idstring · uuidRequired
inbound_transaction_intentall of | nullableOptionalDefault: null
outbound_transaction_intentone of | nullableOptionalDefault: null
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
repledge_intentall of | nullableOptionalDefault: null
Responses
200
Settlement result
application/json
post
POST /settlements HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 719

{
  "from_pledge_id": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "inbound_transaction_intent": {
    "amount": 1,
    "to_account_id": 1,
    "to_address": "text"
  },
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "outbound_transaction_intent": {
    "account_id": "101",
    "fees_strategy": {
      "data": {
        "fees_per_byte": "30"
      },
      "type": "CUSTOM"
    },
    "transaction_data": {
      "account_name": "ETH Wallet 1",
      "amount": "1267887898998",
      "currency": "bitcoin",
      "max_fees": "123908790",
      "recipient": "0x1234...abcd"
    },
    "transaction_type": "BITCOIN_LIKE_SEND"
  },
  "repledge_intent": {
    "account_name": "text",
    "amount": "text",
    "contract_address": "text",
    "currency": "text",
    "exchange_name": "text",
    "pledge_subaccount_id": 1,
    "to_address": "text",
    "transaction_hash": "text"
  }
}
{
  "from_pledge_id": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "inbound_transaction_intent": {
    "amount": 1,
    "to_account_id": 1,
    "to_address": "text"
  },
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "outbound_transaction": {
    "request_id": 1,
    "transaction_hash": "text",
    "transaction_id": 1
  },
  "repledge": {
    "repledge_id": 1,
    "request_id": 1
  },
  "repledge_intent": {
    "account_name": "text",
    "amount": "text",
    "contract_address": "text",
    "currency": "text",
    "exchange_name": "text",
    "pledge_subaccount_id": 1,
    "to_address": "text",
    "transaction_hash": "text"
  },
  "state": "text"
}

Last updated