Create liquidation address
deprecated
Legacy address model; new integrations use standing deposit addresses. Create liquidation address.
POST
/
v1
/
liquidation-addresses
Create liquidation address
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/liquidation-addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"destinationAddress": "<string>",
"feeBps": 4999
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({destinationAddress: '<string>', feeBps: 4999})
};
fetch('https://orchestration.flashnet.xyz/v1/liquidation-addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/liquidation-addresses"
payload = {
"destinationAddress": "<string>",
"feeBps": 4999
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"liquidationAddressId": "<string>",
"label": "<string>",
"sparkAddress": "<string>",
"l1DepositAddress": "<string>",
"destination": {
"chain": "arbitrum",
"asset": "<string>",
"address": "<string>"
},
"feeBps": 123,
"slippageBps": 123,
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"disabledAt": "<string>",
"appFees": [
{
"recipient": "<string>",
"feeBps": 5000,
"affiliateId": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Body
application/json
Unknown top-level fields are ignored rather than rejected.
Registered affiliate IDs or fee overrides for each deposit; mutually exclusive with appFees, with overrides requiring a server key or dashboard session.
Required array length:
1 - 16 elements- string
- object
Registered affiliate ID or { affiliateId, feeBps } override.
Minimum string length:
1Response
Created
Was this page helpful?
⌘I
Create liquidation address
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/liquidation-addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"destinationAddress": "<string>",
"feeBps": 4999
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({destinationAddress: '<string>', feeBps: 4999})
};
fetch('https://orchestration.flashnet.xyz/v1/liquidation-addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/liquidation-addresses"
payload = {
"destinationAddress": "<string>",
"feeBps": 4999
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"liquidationAddressId": "<string>",
"label": "<string>",
"sparkAddress": "<string>",
"l1DepositAddress": "<string>",
"destination": {
"chain": "arbitrum",
"asset": "<string>",
"address": "<string>"
},
"feeBps": 123,
"slippageBps": 123,
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"disabledAt": "<string>",
"appFees": [
{
"recipient": "<string>",
"feeBps": 5000,
"affiliateId": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}