Bind a funding intent to a deposit
curl --request POST \
--url https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundingIntentId": "{{fundingIntentId}}"
}
'import requests
url = "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits"
payload = { "fundingIntentId": "{{fundingIntentId}}" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fundingIntentId: '{{fundingIntentId}}'})
};
fetch('https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fundingIntentId' => '{{fundingIntentId}}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits"
payload := strings.NewReader("{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}"
response = http.request(request)
puts response.read_body{
"version": "local-signing/v2",
"environment": "local",
"adminCommandId": "<string>",
"fundingIntentId": "<string>",
"depositId": "<string>",
"engineCommandId": "<string>",
"accountId": "<string>",
"partyId": "<string>",
"asset": "USD.E",
"amountAtoms": "<string>",
"plannedCantonCommands": [
{
"step": "treasury_offer",
"commandId": "<string>"
}
],
"status": "bound",
"cantonOutcome": {
"step": "treasury_offer",
"outcome": "sequenced_accepted",
"guard": "completion_accepted"
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}Accounts
Bind a funding intent to a deposit
Atomically binds the authenticated owner’s exact durable faucet intent to one deterministic deposit, then prepares the treasury transfer offer on Canton. Asset and amount cannot be changed by the caller.
Method and path: POST /v1/accounts//deposits
Authentication: DFNS trader bearer required.
Request schema: LocalSigningDepositPrepareRequest.
Response schema: LocalSigningDepositResponse.
Error envelope: ExternalRestError (external-rest-error/v1).
POST
/
v1
/
accounts
/
{accountId}
/
deposits
Bind a funding intent to a deposit
curl --request POST \
--url https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundingIntentId": "{{fundingIntentId}}"
}
'import requests
url = "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits"
payload = { "fundingIntentId": "{{fundingIntentId}}" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fundingIntentId: '{{fundingIntentId}}'})
};
fetch('https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fundingIntentId' => '{{fundingIntentId}}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits"
payload := strings.NewReader("{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.edel-api.xyz/v1/accounts/{accountId}/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fundingIntentId\": \"{{fundingIntentId}}\"\n}"
response = http.request(request)
puts response.read_body{
"version": "local-signing/v2",
"environment": "local",
"adminCommandId": "<string>",
"fundingIntentId": "<string>",
"depositId": "<string>",
"engineCommandId": "<string>",
"accountId": "<string>",
"partyId": "<string>",
"asset": "USD.E",
"amountAtoms": "<string>",
"plannedCantonCommands": [
{
"step": "treasury_offer",
"commandId": "<string>"
}
],
"status": "bound",
"cantonOutcome": {
"step": "treasury_offer",
"outcome": "sequenced_accepted",
"guard": "completion_accepted"
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}Authorizations
The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field.
Path Parameters
Minimum string length:
1Body
application/json
Minimum string length:
1Response
Success
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Allowed value:
"local-signing/v2"Available options:
local, development, staging Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Allowed value:
"USD.E"Pattern:
^[1-9][0-9]*$Show child attributes
Show child attributes
Allowed value:
"bound"Show child attributes
Show child attributes