Read a bridge
curl --request GET \
--url https://api.lamarge.trade/v1/bridges/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/bridges/{id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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"
}
}Moves and bridges
Read a bridge
GET
/
v1
/
bridges
/
{id}
Read a bridge
curl --request GET \
--url https://api.lamarge.trade/v1/bridges/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/bridges/{id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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"
}
}Authorizations
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.
Available options:
prepared, submitting, pending, completed, refunded, stuck, failed, expired