curl --request POST \
--url https://api.lamarge.trade/v1/bridges/{id}/signatures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization": "<string>",
"send_asset": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({authorization: '<string>', send_asset: '<string>'})
};
fetch('https://api.lamarge.trade/v1/bridges/{id}/signatures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/bridges/{id}/signatures"
payload = {
"authorization": "<string>",
"send_asset": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_bridge_id": "<string>",
"provider": "relay",
"request_id": "<string>",
"state": "prepared",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"order": {
"id": "<string>",
"data": {},
"deadline": 123
},
"nonce": "<string>",
"account_credit": "<string>",
"amount_out": "<string>",
"wallet_surplus": "<string>",
"refund": {
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"amount": "<string>"
},
"origin_txs": [
"<string>"
],
"destination_txs": [
"<string>"
],
"refund_txs": [
"<string>"
],
"withdrawal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source_dex": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Submit a HyperCore bridge's signatures
The payer’s signatures of the order’s nonce mapping and of the SendAsset to the provider’s depository from the bridge’s source_dex, as the SDK rebuilds them from the order. LaMarge registers the mapping, then relays the send as a withdrawal (withdrawal_id). Resubmitting the same signatures returns the bridge.
curl --request POST \
--url https://api.lamarge.trade/v1/bridges/{id}/signatures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization": "<string>",
"send_asset": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({authorization: '<string>', send_asset: '<string>'})
};
fetch('https://api.lamarge.trade/v1/bridges/{id}/signatures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/bridges/{id}/signatures"
payload = {
"authorization": "<string>",
"send_asset": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_bridge_id": "<string>",
"provider": "relay",
"request_id": "<string>",
"state": "prepared",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"order": {
"id": "<string>",
"data": {},
"deadline": 123
},
"nonce": "<string>",
"account_credit": "<string>",
"amount_out": "<string>",
"wallet_surplus": "<string>",
"refund": {
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"amount": "<string>"
},
"origin_txs": [
"<string>"
],
"destination_txs": [
"<string>"
],
"refund_txs": [
"<string>"
],
"withdrawal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source_dex": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Authorizations
Body
Response
The bridge.
prepared: quoted, nothing signed. submitting: signatures received or deposit prompt fenced. pending: the provider saw the deposit. completed, refunded: final. stuck: debited, the provider neither filled nor refunded on its own, or refunded without saying what or where; contact it with request_id; still followed, it can end completed or refunded. failed: nothing debited (mapping or send refused, send not recorded in time, every deposit reverted, or never sent); a wallet deposit that lands late moves it on (to pending, or straight to completed, refunded or stuck). expired: neither signed nor fenced by expires_at.
prepared, submitting, pending, completed, refunded, stuck, failed, expired