POST /yield/broadcast.
Endpoint
| Parameter | Type | Required | Description |
|---|---|---|---|
provider | string | ✅ | jupiter_lend or kamino |
asset | string | ✅ | Token symbol (e.g. USDC) |
wallet | string | ✅ | User’s Solana public key |
amount | string | ✅ | Decimal amount to deposit (e.g. "10.0") |
chain_name | string | ✅ | Network (e.g. solana) |
Expected response
data.transaction is the base64 unsigned Solana wire. Fee fields reflect StarkFi/whitelabel charges embedded in the transaction when applicable.Sign and broadcast
Sign the wire with the user’s keypair, then either:
- Your RPC:
connection.sendRawTransaction(signedBytes), or - StarkFi (optional):
POST /yield/broadcastwithchain_nameandop_signed
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)