Financiar escrow
Permite que usuários depositem fundos em um contrato de escrow existente, mantendo-os seguros até que as condições acordadas sejam cumpridas.
Cabeçalhos
Nome
Valor
Content-Type
application/json
x-api-key
<token>
Open API
post
Autorizações
Corpo
contractIdstringObrigatórioExample:
ID (address) that identifies the escrow contract
ENG12345signerstringObrigatórioExample:
Entity that signs the transaction that deploys and initializes the escrow
GSIGN...XYZamountnumberObrigatórioExample:
Amount to transfer to the escrow contract
100Respostas
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/single-release/fund-escrow
POST /escrow/single-release/fund-escrow HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"contractId": "CAZ6UQX7...",
"signer": "GAPPROVER1234567890...",
"amount": 10
}{
"status": "SUCCESS",
"unsignedTransaction": "AAAAAgAAAAAtWsgedQ...."
}
O que este Endpoint retorna?
Este endpoint retorna a transação não assinada para que a transação possa ser assinada por meio da carteira do cliente.
Exemplo de uso:
Atualizado