Financiar escrow
Permite a los usuarios depositar fondos en un contrato escrow existente, protegiéndolos hasta que se cumplan las condiciones acordadas.
Encabezados
Nombre
Valor
Open API
post
Autorizaciones
Cuerpo
contractIdstringRequeridoExample:
ID (address) that identifies the escrow contract
ENG12345signerstringRequeridoExample:
Entity that signs the transaction that deploys and initializes the escrow
GSIGN...XYZamountnumberRequeridoExample:
Amount to transfer to the escrow contract
100Respuestas
201
This endpoint returns an unsigned transaction in XDR format. This XDR is then used to sign the transaction using the “/helper/send-transaction” endpoint.
application/json
400
Bad request
401
Unauthorized access
429
Too Many Requests
500
Possible errors:
- Amount cannot be equal to or less than zero
- The provided escrow properties do not match the stored escrow
- An unexpected error occurred
application/json
post/escrow/multi-release/fund-escrow
POST /escrow/multi-release/fund-escrow HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"contractId": "CAZ6UQX7...",
"signer": "GAPPROVER1234567890...",
"amount": 10
}{
"status": "SUCCESS",
"unsignedTransaction": "AAAAAgAAAAAtWsgedQ...."
}
¿Qué devuelve este endpoint?
Ejemplo de uso:
Última actualización