curl --request POST \
--url https://flash.definitive.fi/v1/setup-transaction \
--header 'Content-Type: application/json' \
--header 'x-definitive-api-key: <api-key>' \
--data '
{
"signedSetupTx": "<string>"
}
'import requests
url = "https://flash.definitive.fi/v1/setup-transaction"
payload = { "signedSetupTx": "<string>" }
headers = {
"x-definitive-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-definitive-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({signedSetupTx: '<string>'})
};
fetch('https://flash.definitive.fi/v1/setup-transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "confirmed"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}Submit a setup transaction
Broadcast a funder-signed pre-trade setup transaction from QuoteResponse.setupTxs — no RPC provider needed. status: "pending" means broadcast but not yet confirmed, which is normal on slower chains: poll the transaction you signed rather than re-signing it. A FAILED_PRECONDITION error means the transaction went stale (expired blockhash, spent nonce, stale fees): request a new quote and re-sign.
curl --request POST \
--url https://flash.definitive.fi/v1/setup-transaction \
--header 'Content-Type: application/json' \
--header 'x-definitive-api-key: <api-key>' \
--data '
{
"signedSetupTx": "<string>"
}
'import requests
url = "https://flash.definitive.fi/v1/setup-transaction"
payload = { "signedSetupTx": "<string>" }
headers = {
"x-definitive-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-definitive-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({signedSetupTx: '<string>'})
};
fetch('https://flash.definitive.fi/v1/setup-transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "confirmed"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": null
}
}Authorizations
Your Definitive API key.
Body
One fully funder-signed entry from QuoteResponse.setupTxs: 0x-prefixed hex for EVM, base64 for Solana. Submit entries one per call, in order.
1Response
Setup transaction accepted
confirmed — the transaction reached the chain (Solana: confirmed commitment; EVM: included in a block), so the next setup transaction or the order can be submitted. pending — broadcast but not confirmed within the wait window, which is normal on slower chains: poll the transaction you signed, do not re-sign it.
confirmed, pending