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"
}
'import requests
url = "https://api.lumenwipe.com/v1/{network}/close/transactions"
payload = {
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [{}],
"memo": "1234567890"
}
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'
})
};
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'
]),
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}")
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}")
.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}"
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
}
}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"
}
'import requests
url = "https://api.lumenwipe.com/v1/{network}/close/transactions"
payload = {
"source": "GABC...XYZ",
"destination": "GDEF...UVW",
"decisions": [{}],
"memo": "1234567890"
}
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'
})
};
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'
]),
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}")
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}")
.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}"
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
}
}Authorizations
Integrator API key
Path Parameters
Available options:
testnet, mainnet Body
application/json
Account to close (G...).
Example:
"GABC...XYZ"
Destination for the recovered XLM (G...).
Example:
"GDEF...UVW"
Resolved decision answers; every balance-bearing asset must have a disposition.
Deposit memo value for exchange destinations that require one. The memo type is taken from the exchange registry, not the client.
Example:
"1234567890"
Response
Unsigned transaction envelopes ready for client signing.