Smart Transfer

Define funding source

Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

put/smart-transfers/{ticketId}/terms/{termId}/fund

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

networkConnectionIdstring required

Id of the network connection used.

srcIdstring required

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

srcTypestring required

Source of the asset.

feestring

Transaction fee

feeLevelstring

Transaction fee level.

notestring

Transaction note

Example request

{
  "asset": "BTC",
  "amount": "133.789161216184",
  "networkConnectionId": "0805153d-e77d-4f9b-8818-e507eeb2d122",
  "srcId": "2",
  "srcType": "VAULT_ACCOUNT",
  "fee": "0.001",
  "feeLevel": "MEDIUM",
  "note": "Transaction note"
}

Response

Funding source for ticket term successfully done

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.