curl --request POST \
--url https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"escrow": "<string>",
"owner": "<string>",
"id": "<string>",
"amount": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({escrow: '<string>', owner: '<string>', id: '<string>', amount: '<string>'})
};
fetch('https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare"
payload = {
"escrow": "<string>",
"owner": "<string>",
"id": "<string>",
"amount": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"chain_id": 137,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"value": "0x0"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Prepare a reclaim from a retired contract
Returns an unsigned transaction; nothing is broadcast. Only a reviewed retired escrow, the user’s master or linked owner and the current on-chain amount are accepted. The owner signs and broadcasts it on chain_id, paying gas. Offer withdrawals and expired payment refunds pay the owner wallet. A maker lock refund returns to its offer: rescan, then reclaim that offer. Check from, to, chain_id, calldata and zero value before signing; wait for the receipt before retrying. Credential scope: read.
curl --request POST \
--url https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"escrow": "<string>",
"owner": "<string>",
"id": "<string>",
"amount": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({escrow: '<string>', owner: '<string>', id: '<string>', amount: '<string>'})
};
fetch('https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/escrow/legacy/reclaim/prepare"
payload = {
"escrow": "<string>",
"owner": "<string>",
"id": "<string>",
"amount": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"chain_id": 137,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"value": "0x0"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Authorizations
Master session from POST /v1/auth/verify. Revocable; expires after seven days by default. Required for financial operations.
Body
137, 999 Responses are lowercase.
^0x[0-9a-fA-F]{40}$Responses are lowercase.
^0x[0-9a-fA-F]{40}$offer, lock ^0x[0-9a-fA-F]{64}$Decimal base units of the venue's token, at most 2^256 − 1. With 6 decimals, "1000000" is 1 token.
^[0-9]{1,78}$Response
The transaction to review, sign and broadcast.