Deploy
Deploy the escrow contract and define the escrow properties.
Headers
Content-Type
application/json
x-api-key
<token>
Milestone
description
string
Text describing the function of the milestone
status
string (Default value: "peding")
Milestone status. Ex: Approved, In dispute, etc...
approved
boolean (Default value: false)
Flag indicating whether a milestone has been approved by the approver
Roles:
approver
string
Address of the entity requiring the service.
serviceProvider
string
Address of the entity providing the service.
plataformAddress
string
Address of the entity that owns the escrow
releaseSigner
string
Address of the user in charge of releasing the escrow funds to the service provider.
disputeResolver
string
Address in charge of resolving disputes within the escrow.
receiver
string
Address where escrow proceeds will be sent to
Trustline:
address
string
Public address establishing permission to accept and use a specific token.
symbol
string
Official abbreviation representing the token in wallets, exchanges, and documentation.
Initialize Escrow
Entity that signs the transaction that deploys and initializes the escrow
GABC...XYZUnique identifier for the escrow
ENG12345Name of the escrow
Escrow TestText describing the function of the escrow
Escrow Test descriptionRoles that make up the escrow structure
Amount to be transferred upon completion of escrow milestones
1000Commission that the platform will receive when the escrow is completed
5Objectives to be completed to define the escrow as completed. (In this case it is not necessary to send the properties “approvedFlag” and “status” inside the objects of these milestones)
Information on the trustline that will manage the movement of funds in escrow
This endpoint returns an unsigned transaction in XDR format. This XDR is then used to sign the transaction using the “/helper/send-transaction” endpoint.
Bad request
Unauthorized access
Too Many Requests
Possible errors:
- Amount cannot be zero
- Escrow already initialized
- The platform fee cannot exceed 99%
- Escrow initialized without milestone
- Cannot define more than 50 milestones in an escrow
- All flags (approved, disputed, released) must be false in order to execute this function
- An unexpected error occurred

What this Endpoint returns?
This endpoint returns the transaction unsigned so that the transaction can be signed by means of a customer wallet.
Use Example:
Last updated
Was this helpful?