For the complete documentation index, see llms.txt. This page is also available as Markdown.

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ório

ID (address) that identifies the escrow contract

Example: ENG12345
signerstringObrigatório

Entity that signs the transaction that deploys and initializes the escrow

Example: GSIGN...XYZ
amountnumberObrigatório

Amount to transfer to the escrow contract

Example: 100
Respostas
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
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...."
}

O que este endpoint retorna?

Este endpoint retorna a transação não assinada para que a transação possa ser assinada por meio de uma carteira do cliente.

Exemplo de uso:

Atualizado