Create Multiple Transactions
curl --request POST \
--url https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"accountId": "<string>",
"externalId": "<string>",
"description": "<string>",
"expiresAt": "<string>",
"params": {
"assetId": "<string>"
}
}
]
}
'import requests
url = "https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create"
payload = { "transactions": [
{
"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({
transactions: [
{
accountId: '<string>',
externalId: '<string>',
description: '<string>',
expiresAt: '<string>',
params: {assetId: '<string>'}
}
]
})
};
fetch('https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create', 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/bulk-create",
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([
'transactions' => [
[
'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/bulk-create"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\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/bulk-create")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create")
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 \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"accountId": "<string>",
"accountType": "vault",
"createdAt": "<string>",
"externalId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"createdBy": "<string>",
"embedded": {
"attestationSignature": {
"publicKey": "<string>",
"signature": "<string>"
},
"currentSigningRequest": {
"accountId": "<string>",
"blockchainNonce": "<string>",
"messagesForSigning": {
"messages": [
{
"message": "<string>"
}
],
"primitivesVersion": "<string>",
"publicKey": "<string>",
"useBackupPrimitive": true
},
"networkId": "<string>",
"requestParameters": {},
"shouldBeBroadcasted": true,
"signed": {
"signature": "<string>",
"signatures": [
{
"e": "<string>",
"r": "<string>",
"rx": "<string>",
"s": "<string>",
"signature": "<string>",
"v": "<string>"
}
],
"txRaw": "<string>"
},
"signingData": {},
"signingRequestId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>"
},
"events": [
{
"accountId": "<string>",
"accountType": "vault",
"assetId": "<string>",
"createdAt": "<string>",
"eventId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"amount": "<string>",
"blockchainTxId": "<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>"
}
]
},
"expiresAt": "<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": {
"amount": "<string>",
"assetId": "<string>",
"feeLevel": "medium",
"includeFee": "false",
"intentOrderId": "<string>",
"memo": "<string>",
"networkFees": {
"feePerByte": "<string>",
"gasLimit": "<string>",
"gasPriceGwei": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>"
},
"networkId": "<string>",
"symbol": "<string>",
"toAccountId": "<string>",
"toAddress": "<string>",
"toAddressBookRecordId": "<string>",
"toWorkspaceTag": "<string>"
},
"terminatedAt": "<string>",
"updatedAt": "<string>"
}
],
"embedded": {
"attestationSignature": {
"publicKey": "<string>",
"signature": "<string>"
},
"currentSigningRequest": {
"accountId": "<string>",
"blockchainNonce": "<string>",
"messagesForSigning": {
"messages": [
{
"message": "<string>"
}
],
"primitivesVersion": "<string>",
"publicKey": "<string>",
"useBackupPrimitive": true
},
"networkId": "<string>",
"requestParameters": {},
"shouldBeBroadcasted": true,
"signed": {
"signature": "<string>",
"signatures": [
{
"e": "<string>",
"r": "<string>",
"rx": "<string>",
"s": "<string>",
"signature": "<string>",
"v": "<string>"
}
],
"txRaw": "<string>"
},
"signingData": {},
"signingRequestId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>"
},
"events": [
{
"accountId": "<string>",
"accountType": "vault",
"assetId": "<string>",
"createdAt": "<string>",
"eventId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"amount": "<string>",
"blockchainTxId": "<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>"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Create Multiple Transactions
Bulk transactions creation. If the execution of an transaction fails, it will not affect the execution of other transactions. Failed transactions will be returned in the response. The bulk size should be less than 50 transactions.
API Key permissions: Transaction Operator, Full AccessPOST
/
workspaces
/
{workspaceId}
/
transactions
/
bulk-create
Create Multiple Transactions
curl --request POST \
--url https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"accountId": "<string>",
"externalId": "<string>",
"description": "<string>",
"expiresAt": "<string>",
"params": {
"assetId": "<string>"
}
}
]
}
'import requests
url = "https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create"
payload = { "transactions": [
{
"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({
transactions: [
{
accountId: '<string>',
externalId: '<string>',
description: '<string>',
expiresAt: '<string>',
params: {assetId: '<string>'}
}
]
})
};
fetch('https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create', 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/bulk-create",
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([
'transactions' => [
[
'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/bulk-create"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\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/bulk-create")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/transactions/bulk-create")
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 \"transactions\": [\n {\n \"accountId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"expiresAt\": \"<string>\",\n \"params\": {\n \"assetId\": \"<string>\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"accountId": "<string>",
"accountType": "vault",
"createdAt": "<string>",
"externalId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"createdBy": "<string>",
"embedded": {
"attestationSignature": {
"publicKey": "<string>",
"signature": "<string>"
},
"currentSigningRequest": {
"accountId": "<string>",
"blockchainNonce": "<string>",
"messagesForSigning": {
"messages": [
{
"message": "<string>"
}
],
"primitivesVersion": "<string>",
"publicKey": "<string>",
"useBackupPrimitive": true
},
"networkId": "<string>",
"requestParameters": {},
"shouldBeBroadcasted": true,
"signed": {
"signature": "<string>",
"signatures": [
{
"e": "<string>",
"r": "<string>",
"rx": "<string>",
"s": "<string>",
"signature": "<string>",
"v": "<string>"
}
],
"txRaw": "<string>"
},
"signingData": {},
"signingRequestId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>"
},
"events": [
{
"accountId": "<string>",
"accountType": "vault",
"assetId": "<string>",
"createdAt": "<string>",
"eventId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"amount": "<string>",
"blockchainTxId": "<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>"
}
]
},
"expiresAt": "<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": {
"amount": "<string>",
"assetId": "<string>",
"feeLevel": "medium",
"includeFee": "false",
"intentOrderId": "<string>",
"memo": "<string>",
"networkFees": {
"feePerByte": "<string>",
"gasLimit": "<string>",
"gasPriceGwei": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>"
},
"networkId": "<string>",
"symbol": "<string>",
"toAccountId": "<string>",
"toAddress": "<string>",
"toAddressBookRecordId": "<string>",
"toWorkspaceTag": "<string>"
},
"terminatedAt": "<string>",
"updatedAt": "<string>"
}
],
"embedded": {
"attestationSignature": {
"publicKey": "<string>",
"signature": "<string>"
},
"currentSigningRequest": {
"accountId": "<string>",
"blockchainNonce": "<string>",
"messagesForSigning": {
"messages": [
{
"message": "<string>"
}
],
"primitivesVersion": "<string>",
"publicKey": "<string>",
"useBackupPrimitive": true
},
"networkId": "<string>",
"requestParameters": {},
"shouldBeBroadcasted": true,
"signed": {
"signature": "<string>",
"signatures": [
{
"e": "<string>",
"r": "<string>",
"rx": "<string>",
"s": "<string>",
"signature": "<string>",
"v": "<string>"
}
],
"txRaw": "<string>"
},
"signingData": {},
"signingRequestId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>"
},
"events": [
{
"accountId": "<string>",
"accountType": "vault",
"assetId": "<string>",
"createdAt": "<string>",
"eventId": "<string>",
"transactionId": "<string>",
"workspaceId": "<string>",
"amount": "<string>",
"blockchainTxId": "<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>"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
