Skip to main content
POST
Build the unsigned close transactions for a resolved plan.

Authorizations

Authorization
string
header
required

Integrator API key

Path Parameters

network
enum<string>
required
Available options:
testnet,
mainnet

Body

application/json
source
string
required

Account to close (G...).

Example:

"GABC...XYZ"

destination
string
required

Destination for the recovered XLM (G...).

Example:

"GDEF...UVW"

decisions
object[]

Resolved decision answers; every balance-bearing asset must have a disposition.

memo
string

Deposit memo value for destinations that require one. An id memo is a decimal uint64 with no leading zeros.

Example:

"1234567890"

memoType
enum<string>

The type of memo. For a listed exchange the registry's type is used and a different one is refused (422 invalid_memo); for any other destination this type is used, text when omitted. Has no effect without a memo.

Available options:
text,
id
planHash
string

The planHash of the plan the user reviewed, sent with the first call after it. If the account's sequence or the answers differ from those the plan was built from, the call answers 409 state_changed. Omit it once a transaction of the close has confirmed.

Pattern: ^[0-9a-f]{64}$

Response

Unsigned transaction envelopes ready for client signing.

planHash
string
required

Deterministic hash of this plan's content - unchanged inputs yield the same hash.

status
enum<string>
required
Available options:
ready,
needs_decisions,
blocked,
complete
transactions
object[]
required
remaining
object
required
sourceAccount
object

The closing account's signers and thresholds as read at the start of this round, the read these transactions were built from. Judge signing weight against these, with each confirmed SetOptions of the round applied on top.