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
Partner API key in the form Authorization: Bearer fn_....
Headers
Minimum string length:
1Body
application/json
Unknown top-level fields are ignored rather than rejected.
Available options:
arbitrum, arc, avalanche, base, bitcoin, bsc, ethereum, hedera, hypercore, hyperevm, lightning, litecoin, monad, monero, optimism, plasma, polygon, robinhood, sei, solana, spark, tempo, ton, tron, xrp, zcash Server canonicalizes by trimming leading/trailing whitespace; case is preserved.
Minimum string length:
1Maximum string length:
255Pattern:
^[^\x00-\x1F\x7F]*$Minimum string length:
1Required range:
0 <= x <= 10000Required range:
0 <= x <= 9999Required array length:
1 - 16 elementsShow child attributes
Show child attributes
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 elementsRegistered affiliate ID or { affiliateId, feeBps } override.
Minimum string length:
1Response
Created
Show child attributes
Show child attributes
Show child attributes
Show child attributes
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>"
}
}