curl --request POST \
--url https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalMessage": "<string>",
"signature": "<string>",
"publicKey": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
approvalMessageId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
approvalMessage: '<string>',
signature: '<string>',
publicKey: '<string>'
})
};
fetch('https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals"
payload = {
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalMessage": "<string>",
"signature": "<string>",
"publicKey": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"completed": true
}Submit order approval
Submits the owner’s approval for an embedded-wallet order transaction. Sign the
approvalMessage from the order’s approval with the owner’s P-256 key and submit
the signature as a hex string (Turnkey stamp envelopes are not accepted). One signature per call; an M-of-N quorum is a
separate call per signer.
The approvalMessage MUST be byte-identical to what was signed and the
approvalMessageId MUST match the order’s current approval, or the call is
rejected as stale. Server-side signers typically output ~142-character DER-wrapped
hex; browser WebCrypto outputs 128-character raw r‖s hex. Either layout is
accepted. Invalid hex, wrong length, or a signature that does not verify over
approvalMessage is rejected synchronously with 400.
curl --request POST \
--url https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalMessage": "<string>",
"signature": "<string>",
"publicKey": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
approvalMessageId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
approvalMessage: '<string>',
signature: '<string>',
publicKey: '<string>'
})
};
fetch('https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/order/{order_id}/approvals"
payload = {
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalMessage": "<string>",
"signature": "<string>",
"publicKey": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"approvalMessageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"completed": true
}Body
ECDSA P-256 signature over the approvalMessage, as a hex string. Most server-side signers output DER-wrapped hex (~142 characters, often starts with 30); browser WebCrypto outputs raw r‖s as 128 hex characters. Either layout is accepted. See the worked example in Embedded Wallets.