Skip to main content
POST
/
workspaces
/
{workspaceId}
/
transactions
/
dry-run
Dry-Run Transaction
curl --request POST \
  --url https://api.bron.org/workspaces/{workspaceId}/transactions/dry-run \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "<string>",
  "externalId": "<string>",
  "description": "<string>",
  "expiresAt": "<string>",
  "params": {
    "assetId": "<string>"
  }
}
'
import requests

url = "https://api.bron.org/workspaces/{workspaceId}/transactions/dry-run"

payload = {
"accountId": "<string>",
"externalId": "<string>",
"description": "<string>",
"expiresAt": "<string>",
"params": { "assetId": "<string>" }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accountId: '<string>',
externalId: '<string>',
description: '<string>',
expiresAt: '<string>',
params: {assetId: '<string>'}
})
};

fetch('https://api.bron.org/workspaces/{workspaceId}/transactions/dry-run', 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://api.bron.org/workspaces/{workspaceId}/transactions/dry-run",
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([
'accountId' => '<string>',
'externalId' => '<string>',
'description' => '<string>',
'expiresAt' => '<string>',
'params' => [
'assetId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"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://api.bron.org/workspaces/{workspaceId}/transactions/dry-run"

payload := strings.NewReader("{\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n}")

req, _ := http.NewRequest("POST", url, payload)

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://api.bron.org/workspaces/{workspaceId}/transactions/dry-run")
.header("Content-Type", "application/json")
.body("{\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bron.org/workspaces/{workspaceId}/transactions/dry-run")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "accountId": "<string>",
  "description": "<string>",
  "estimations": [
    {
      "assetId": "<string>",
      "createdAt": "<string>",
      "estimationId": "<string>",
      "transactionId": "<string>",
      "amount": "<string>",
      "extra": {
        "allowance": [
          {
            "address": "<string>",
            "amount": "<string>",
            "networkId": "<string>",
            "unlimited": true
          }
        ],
        "in": [
          {
            "address": "<string>",
            "amount": "<string>",
            "fromAccountId": "<string>",
            "fromAddressBookRecordId": "<string>",
            "networkId": "<string>"
          }
        ],
        "out": [
          {
            "address": "<string>",
            "amount": "<string>",
            "memo": "<string>",
            "networkId": "<string>",
            "toAccountId": "<string>",
            "toAddressBookRecordId": "<string>"
          }
        ],
        "rewardInfo": {},
        "signingMessage": {
          "message": "<string>",
          "version": "<string>"
        },
        "stakeInfo": [
          {}
        ],
        "transactionFailed": true,
        "walletStateInit": "<string>"
      },
      "networkId": "<string>",
      "symbol": "<string>",
      "usdAmount": "<string>"
    }
  ],
  "externalId": "<string>",
  "extra": {
    "approvers": {
      "approvedBy": [
        "<string>"
      ],
      "availableApprovers": [
        "<string>"
      ],
      "limitId": "<string>",
      "number": "<string>",
      "securityDelayDuration": "<string>",
      "securityDelayExpiresAt": "<string>",
      "skipApproval": true
    },
    "blockchainDetails": [
      {
        "blockchainTxId": "<string>",
        "networkId": "<string>"
      }
    ],
    "blockchainRequest": {
      "externalBroadcast": true,
      "networkId": "<string>"
    },
    "confirmations": "<string>",
    "depositTransactionId": "<string>",
    "description": "<string>",
    "fromAccountId": "<string>",
    "fromAddress": "<string>",
    "fromWorkspaceIcon": "<string>",
    "fromWorkspaceName": "<string>",
    "fromWorkspaceTag": "<string>",
    "memo": "<string>",
    "signingRequestId": "<string>",
    "toAccountId": "<string>",
    "toAddress": "<string>",
    "toWorkspaceIcon": "<string>",
    "toWorkspaceName": "<string>",
    "toWorkspaceTag": "<string>",
    "withdrawTransactionId": "<string>"
  },
  "params": {},
  "warning": {
    "message": "<string>",
    "code": "<string>"
  }
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}

Path Parameters

workspaceId
string
required

Body

application/json
accountId
string
required

The id of the account where the transaction should be placed

Example:

"w9jh0gf3w9qaxlre7enezt17"

externalId
string
required

Unique transaction identifier from client (should be unique per the account)

Example:

"w2u573pjj5wl97p4v325z4a"

transactionType
enum<string>
required

The transaction type. See details

Available options:
deposit,
withdrawal,
multi-withdrawal,
negative-deposit,
auto-withdrawal,
allowance,
defi,
defi-message,
address-activation,
address-creation,
stake-delegation,
stake-undelegation,
stake-claim,
stake-withdrawal,
stake-take-reward,
stake-earn-reward,
swap-lifi,
intents,
loyalty-lock,
loyalty-unlock,
loyalty-collect-rewards,
canton-reward,
nft-deposit,
nft-withdrawal,
nft-allowance,
fiat-out,
fiat-in,
bridge
Example:

"withdrawal"

description
string

The description of the transaction

Example:

"Withdrawal to an exchange"

expiresAt
string<date-time-millis>

Optional expiration time for the transaction

Example:

"1753370264978"

params
Address activation · object

Transaction specific parameters

Response

OK

accountId
string
required
transactionType
enum<string>
required
Available options:
deposit,
withdrawal,
multi-withdrawal,
negative-deposit,
auto-withdrawal,
allowance,
defi,
defi-message,
address-activation,
address-creation,
stake-delegation,
stake-undelegation,
stake-claim,
stake-withdrawal,
stake-take-reward,
stake-earn-reward,
swap-lifi,
intents,
loyalty-lock,
loyalty-unlock,
loyalty-collect-rewards,
canton-reward,
nft-deposit,
nft-withdrawal,
nft-allowance,
fiat-out,
fiat-in,
bridge
description
string

The description of the transaction

Example:

"Withdrawal to an exchange"

estimations
object[]
externalId
string
extra
object
params
object
warning
object