Smart Transfer

Set funding source and approval

Set funding source for ticket term and creating approving transaction for contract to transfer asset

put/smart_transfers/{ticketId}/terms/{termId}/dvp/approve

Request

Path parameters

ticketIdstring required
termIdstring required

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

assetstring required

Asset name

amountstring required

Amount

srcIdstring required

Id of the vault that is used as the source of the asset.

feestring

Transaction fee

feeLevel'LOW' | 'MEDIUM' | 'HIGH'

Transaction fee level.

notestring

Transaction note

Example request

{
  "asset": "USDC",
  "amount": "133.789161216184",
  "srcId": "2",
  "fee": "0.001",
  "feeLevel": "MEDIUM",
  "note": "Transaction note"
}

Response

Creating approval transaction started

messagestring nullable required

Result message

Example response

{
  "message": "Success",
  "data": {
    "id": "84601ee2-b10f-4aa8-be9c-dba259a3533a",
    "ticketId": "900f04c3-83bc-428d-b681-aef682059637",
    "asset": "BTC",
    "amount": "133.789161216184",
    "amountUsd": "1333.789161216184",
    "fromNetworkId": "947c6115-1f5f-4fb4-9fd6-a1f9dee14670",
    "fromNetworkIdName": "Source network profile name",
    "toNetworkId": "5d009697-c29b-48e0-aff8-1f4305d19dc2",
    "toNetworkIdName": "Destination network profile name",
    "txHash": "0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c",
    "fbTxId": "79075e8c-1fd9-4c97-9575-3bd9229e5c0d",
    "txStatus": "COMPLETED",
    "status": "CREATED",
    "createdAt": "2023-03-01T11:23:00Z",
    "updatedAt": "2023-03-01T11:23:00Z"
  }
}

Changes

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