curl --request POST \
--url https://api.starkfi.io/yield/broadcast \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"chain_name": "solana",
"op_signed": "AQAAAAA..."
}'
const response = await fetch("https://api.starkfi.io/yield/broadcast", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({
chain_name: "solana",
op_signed: "AQAAAAA...",
}),
});
const data = await response.json();
{
"statusCode": 200,
"success": true,
"status": "broadcast_operation_yield_strategy_ok",
"message": "Yield operation broadcasted successfully",
"data": {
"status": 1,
"transactionHash": "5VERv8NMvzbJME..."
}
}
{
"statusCode": 400,
"success": false,
"status": "signed_transaction_missing",
"message": "signed_transaction_missing"
}
{
"statusCode": 409,
"success": false,
"status": "solana_blockhash_expired",
"message": "solana_blockhash_expired"
}
Yield Aggregator
Broadcast yield operation
Optional relay for signed Solana yield transactions. Requires chain_name and op_signed only.
POST
/
yield
/
broadcast
curl --request POST \
--url https://api.starkfi.io/yield/broadcast \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"chain_name": "solana",
"op_signed": "AQAAAAA..."
}'
const response = await fetch("https://api.starkfi.io/yield/broadcast", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({
chain_name: "solana",
op_signed: "AQAAAAA...",
}),
});
const data = await response.json();
{
"statusCode": 200,
"success": true,
"status": "broadcast_operation_yield_strategy_ok",
"message": "Yield operation broadcasted successfully",
"data": {
"status": 1,
"transactionHash": "5VERv8NMvzbJME..."
}
}
{
"statusCode": 400,
"success": false,
"status": "signed_transaction_missing",
"message": "signed_transaction_missing"
}
{
"statusCode": 409,
"success": false,
"status": "solana_blockhash_expired",
"message": "solana_blockhash_expired"
}
Optional for Yield Aggregator — you may broadcast signed transactions with your own RPC instead. StarkPay
POST /payment/execute/on-chain remains required for payment flows.string
required
Your StarkFi API key.
string
required
Enabled chain where the operation was built, e.g.
solana.string | string[]
required
Base64 signed Solana wire. One string for deposit, withdraw, or a merged rebalance. Up to two strings in an array for dual-transaction rebalance.
curl --request POST \
--url https://api.starkfi.io/yield/broadcast \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"chain_name": "solana",
"op_signed": "AQAAAAA..."
}'
const response = await fetch("https://api.starkfi.io/yield/broadcast", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({
chain_name: "solana",
op_signed: "AQAAAAA...",
}),
});
const data = await response.json();
{
"statusCode": 200,
"success": true,
"status": "broadcast_operation_yield_strategy_ok",
"message": "Yield operation broadcasted successfully",
"data": {
"status": 1,
"transactionHash": "5VERv8NMvzbJME..."
}
}
{
"statusCode": 400,
"success": false,
"status": "signed_transaction_missing",
"message": "signed_transaction_missing"
}
{
"statusCode": 409,
"success": false,
"status": "solana_blockhash_expired",
"message": "solana_blockhash_expired"
}
Response
number
Confirmation status from the relay (
1 when successful on Solana).string
On-chain signature when available.
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)