Off-Exchange Settlement: Deallocate Assets from Partners

Deallocate assets from a partner to unlock them at BitGo. See the Guide.

  1. You request a signing payload from BitGo for the deallocation. This payload will be used to sign the deallocation request and ensure its authenticity. This step is required before creating the deallocation request.

    API Reference

  2. You deallocate assets from a connected partner to your Go Network account. Deallocating assets unlocks them at BitGo, making them available for other actions like rebalancing or withdrawing. Deallocations occur synchronously.

    Prerequisites: You must first connect to a partner and allocate assets.

    API Reference

// 1. Get Deallocation Payload
export ENTERPRISE_ID="<YOUR_ENTERPRISE_ID>"
export CONNECTION_ID="<YOUR_CONNECTION_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"

curl -X POST \
  https://app.bitgo-test.com/api/network/v1/enterprises/$ENTERPRISE_ID/clients/connections/$CONNECTION_ID/deallocations/signing \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "clientExternalId": "string",
    "nonce": "string",
    "notes": "string"
  }'
// 2. Create Deallocation Request
export ENTERPRISE_ID="<YOUR_ENTERPRISE_ID>"
export CONNECTION_ID="<YOUR_CONNECTION_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"

curl -X POST \
  https://app.bitgo-test.com/api/network/v1/enterprises/$ENTERPRISE_ID/clients/connections/$CONNECTION_ID/deallocations \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "clientExternalId": "string",
    "payload": "string",
    "signature": "string",
    "nonce": "string",
    "notes": "string"
  }'
Response
// 1. Get Deallocation Payload Response
{
  "payload": "string"
}

// 2. Create Deallocation Request Response
{
  "deallocation": {
    "status": "cleared",
    "id": "string",
    "amount": {
      "currency": "string",
      "quantity": "string"
    },
    "connectionId": "string",
    "clientExternalId": "string",
    "partnerExternalId": "string",
    "initiatedBy": "string",
    "notes": "string",
    "createdAt": "2019-08-24",
    "updatedAt": "2019-08-24"
  }
}