Build the unsigned close transactions for a resolved plan.
curl --request POST \
--url https://api.lumenwipe.com/v1/{network}/close/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [
{}
],
"memo": "1234567890",
"planHash": "<string>"
}
'import requests
url = "https://api.lumenwipe.com/v1/{network}/close/transactions"
payload = {
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [{}],
"memo": "1234567890",
"planHash": "<string>"
}
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({
source: 'GABC...XYZ',
destination: 'GDEF...UVW',
decisions: [{}],
memo: '1234567890',
planHash: '<string>'
})
};
fetch('https://api.lumenwipe.com/v1/{network}/close/transactions', 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.lumenwipe.com/v1/{network}/close/transactions",
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([
'source' => 'GABC...XYZ',
'destination' => 'GDEF...UVW',
'decisions' => [
[
]
],
'memo' => '1234567890',
'planHash' => '<string>'
]),
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.lumenwipe.com/v1/{network}/close/transactions"
payload := strings.NewReader("{\n \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\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.lumenwipe.com/v1/{network}/close/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenwipe.com/v1/{network}/close/transactions")
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 \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"planHash": "<string>",
"status": "ready",
"transactions": [
{
"id": "<string>",
"order": 123,
"dependsOn": [
"<string>"
],
"xdr": "<string>",
"networkPassphrase": "<string>",
"sourceSequence": "<string>",
"validUntilLedger": 123,
"covers": [
"NORMALIZE_SIGNERS"
],
"intent": {
"summary": "<string>",
"source": "<string>",
"fee": "<string>",
"memo": "<string>",
"memoType": "text",
"guarantees": {
"mergeDestination": "<string>",
"paymentsOnlyTo": [
"<string>"
],
"minXlmFromConversions": "<string>"
},
"operations": [
{
"type": "path_payment_strict_send",
"source": "<string>",
"sendAsset": "<string>",
"sendAmount": "<string>",
"destination": "<string>",
"destAsset": "<string>",
"destMin": "<string>",
"path": [
"<string>"
]
}
]
},
"needsSponsoredFee": true
}
],
"remaining": {
"steps": 123,
"requiresAnotherCall": true
},
"sourceAccount": {
"signers": [
{
"key": "<string>",
"weight": 123,
"type": "ed25519_public_key"
}
],
"thresholds": {
"low": 123,
"med": 123,
"high": 123
}
}
}{
"error": {
"code": "invalid_network",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "key_network_not_allowed",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "account_not_found",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "quote_drifted",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "unsupported_media_type",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "memo_required",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "transactions_failed",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "provider_response_unusable",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "mediator_not_configured",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Close
Build the unsigned close transactions for a resolved plan.
POST
/
v1
/
{network}
/
close
/
transactions
Build the unsigned close transactions for a resolved plan.
curl --request POST \
--url https://api.lumenwipe.com/v1/{network}/close/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [
{}
],
"memo": "1234567890",
"planHash": "<string>"
}
'import requests
url = "https://api.lumenwipe.com/v1/{network}/close/transactions"
payload = {
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [{}],
"memo": "1234567890",
"planHash": "<string>"
}
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({
source: 'GABC...XYZ',
destination: 'GDEF...UVW',
decisions: [{}],
memo: '1234567890',
planHash: '<string>'
})
};
fetch('https://api.lumenwipe.com/v1/{network}/close/transactions', 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.lumenwipe.com/v1/{network}/close/transactions",
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([
'source' => 'GABC...XYZ',
'destination' => 'GDEF...UVW',
'decisions' => [
[
]
],
'memo' => '1234567890',
'planHash' => '<string>'
]),
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.lumenwipe.com/v1/{network}/close/transactions"
payload := strings.NewReader("{\n \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\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.lumenwipe.com/v1/{network}/close/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenwipe.com/v1/{network}/close/transactions")
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 \"source\": \"GABC...XYZ\",\n \"destination\": \"GDEF...UVW\",\n \"decisions\": [\n {}\n ],\n \"memo\": \"1234567890\",\n \"planHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"planHash": "<string>",
"status": "ready",
"transactions": [
{
"id": "<string>",
"order": 123,
"dependsOn": [
"<string>"
],
"xdr": "<string>",
"networkPassphrase": "<string>",
"sourceSequence": "<string>",
"validUntilLedger": 123,
"covers": [
"NORMALIZE_SIGNERS"
],
"intent": {
"summary": "<string>",
"source": "<string>",
"fee": "<string>",
"memo": "<string>",
"memoType": "text",
"guarantees": {
"mergeDestination": "<string>",
"paymentsOnlyTo": [
"<string>"
],
"minXlmFromConversions": "<string>"
},
"operations": [
{
"type": "path_payment_strict_send",
"source": "<string>",
"sendAsset": "<string>",
"sendAmount": "<string>",
"destination": "<string>",
"destAsset": "<string>",
"destMin": "<string>",
"path": [
"<string>"
]
}
]
},
"needsSponsoredFee": true
}
],
"remaining": {
"steps": 123,
"requiresAnotherCall": true
},
"sourceAccount": {
"signers": [
{
"key": "<string>",
"weight": 123,
"type": "ed25519_public_key"
}
],
"thresholds": {
"low": 123,
"med": 123,
"high": 123
}
}
}{
"error": {
"code": "invalid_network",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "key_network_not_allowed",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "account_not_found",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "quote_drifted",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "unsupported_media_type",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "memo_required",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "transactions_failed",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "provider_response_unusable",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "mediator_not_configured",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Body
application/json
Response
Unsigned transaction envelopes ready for client signing.