Atualizar Escrow
Este endpoint permite alterar as propriedades de um escrow desde que uma série de requisitos seja atendida, que serão mencionados nesta seção.
Requisitos para usar:
Cabeçalhos
Nome
Valor
Papéis:
Nome
Tipo
Descrição
Marco:
Nome
Tipo
Descrição
Flags
Nome
Tipo
Descrição
Trustline
Nome
Tipo
Descrição
Open API
put
Autorizações
Corpo
signerstringObrigatórioExample:
Entity that signs the transaction that deploys and initializes the escrow
GSIGN...XYZcontractIdstringObrigatórioExample:
ID (address) that identifies the escrow contract
CAZ6UQX7...Respostas
200
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:
- Escrow not found
- The platform fee cannot exceed 99%
- Amount cannot be equal to or less than zero
- Escrow initialized without milestone
- Cannot define more than 50 milestones in an escrow
- Only the platform address should be able to execute this function
- The platform address of the escrow cannot be changed
- Escrow has been opened for dispute resolution
- All flags (approved, disputed, released) must be false in order to execute this function
- The provided escrow properties do not match the stored escrow
- You can't change the escrow properties after the milestone is approved
- An unexpected error occurred
application/json
put
/escrow/single-release/update-escrow
O que este endpoint retorna?
Exemplo de uso:
Atualizado
Isto foi útil?