Distribute escrow funds

The escrow has been successful completed.

Distributes escrow earnings after the escrow is marked as complete.

URL: /escrow/distribute-escrow-earnings

Body params:

contractId: ID (address) that identifies the escrow contract

releaseSigner: Address of the user defined to release the funds

Example:

{
	contractId: "GC3DJY4LLQYJHEONXFDLQVVRCFZQCPFX7VD33KP4P7QSVZY3SJHQBZGV",
	releaseSigner: "GBY3PAJY5R3ZIXTYBGFW4URB4RINEXQBC3T4RWDDKJ5TZXQYZUN6A4TP", 
};


This was previously called complete escrow:

POST escrow/complete-escrow

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

string

The unique identifier linking this escrow to a specific project or transaction.

string | Address

The address authorized to approve the release of funds.

string

The unique identifier of the contract.

Example of Request Body:

{
  "engamentId": "test", 
  "signer": "GD2SVFOJ...",
  "contractId": "SCMXDC..."
}

Possible Responses

{
    "status": "SUCCESS",
    "unsignedTransaction": "AAAAAgAAAABfQAm/gS..."  // XDR Hash Transaction
}

What this Endpoint returns?

This endpoint returns the transaction unsigned so that the transaction can be signed by means of a customer wallet.

Last updated

Was this helpful?