Submit signed transaction to Stellar blockchain
curl --request POST \
--url https://api.defindex.io/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"xdr": "AAAAAgAAAAC7VYzjqMryr..."
}
'import requests
url = "https://api.defindex.io/send"
payload = { "xdr": "AAAAAgAAAAC7VYzjqMryr..." }
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({xdr: 'AAAAAgAAAAC7VYzjqMryr...'})
};
fetch('https://api.defindex.io/send', 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.defindex.io/send",
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([
'xdr' => 'AAAAAgAAAAC7VYzjqMryr...'
]),
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://api.defindex.io/send"
payload := strings.NewReader("{\n \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\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://api.defindex.io/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.defindex.io/send")
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 \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\n}"
response = http.request(request)
puts response.read_body{
"txHash": "6599224a0f08186e59441397202c0513e4383490c54c6fcdb1cf31d35e086d6a",
"success": true,
"result": {
"type": "unknown",
"value": [
[
"4000000000"
],
"4021025140",
null
]
},
"ledger": 65015482,
"createdAt": "1792363193",
"latestLedger": 65112150,
"latestLedgerCloseTime": "1792846533",
"feeBump": true,
"feeCharged": "287898"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Transactions
Submit signed transaction to Stellar blockchain
System Function: Submits a pre-signed DeFindex transaction to the Stellar blockchain network.
This endpoint allows users to submit transaction XDRs that have been prepared by other DeFindex endpoints and signed by the user. The service handles transaction submission and provides gas-free transaction processing for valid DeFindex operations.
POST
/
send
Submit signed transaction to Stellar blockchain
curl --request POST \
--url https://api.defindex.io/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"xdr": "AAAAAgAAAAC7VYzjqMryr..."
}
'import requests
url = "https://api.defindex.io/send"
payload = { "xdr": "AAAAAgAAAAC7VYzjqMryr..." }
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({xdr: 'AAAAAgAAAAC7VYzjqMryr...'})
};
fetch('https://api.defindex.io/send', 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.defindex.io/send",
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([
'xdr' => 'AAAAAgAAAAC7VYzjqMryr...'
]),
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://api.defindex.io/send"
payload := strings.NewReader("{\n \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\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://api.defindex.io/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.defindex.io/send")
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 \"xdr\": \"AAAAAgAAAAC7VYzjqMryr...\"\n}"
response = http.request(request)
puts response.read_body{
"txHash": "6599224a0f08186e59441397202c0513e4383490c54c6fcdb1cf31d35e086d6a",
"success": true,
"result": {
"type": "unknown",
"value": [
[
"4000000000"
],
"4021025140",
null
]
},
"ledger": 65015482,
"createdAt": "1792363193",
"latestLedger": 65112150,
"latestLedgerCloseTime": "1792846533",
"feeBump": true,
"feeCharged": "287898"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Authorizations
Query Parameters
Body
application/json
Signed transaction data ready for blockchain submission.
Response
Transaction applied on-chain (or already applied by an earlier call with the same XDR)
Was this page helpful?