ZeroCopyZeroCopy
ReferenceJSON-RPC

getTipAccounts

POST
/

Read the live set of accounts a transfer must reach to count as an SWQoS tip.

Authorization

headerx-api-key<token>

Send the SWQoS API key in this header. See the authentication reference for compatibility forms and precedence.

Request Body

One JSON object using the shared request conventions. The method takes no params; queries do not use your send rate. The local agent also serves this method.

application/json
  1. body
jsonrpc*"2.0"
Value in"2.0"
id?||

Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.

method*"getTipAccounts"
Value in"getTipAccounts"
params?unknown

Ignored when present.

Response Body

Returns the current base58 tip-account addresses for transactions and bundles.

Refusals with HTTP 200, by error.data.reason:

application/json
  1. response
jsonrpc*"2.0"
Value in"2.0"
result*array<>

Only returned addresses count as tip recipients; membership can change. Any entry is valid and order does not indicate priority. An empty array means no account is available; submissions return not_ready with waiting_for: tip_vaults. Do not hard-code the list. Cache it for up to 15 minutes, and fetch it again sooner after that refusal or after a missing_tip with a lower found than expected. For USDC, USDT and WSOL tips, use getTipTokenAccounts. See Tips.

id*||

Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.

Example request
// Builds on the example project (/reference/json-rpc#example-project).
use rand::seq::IndexedRandom;
use swqos_examples::swqos::{Result, call};

#[tokio::main]
async fn main() -> Result<()> {
    let accounts: Vec<String> = call("getTipAccounts", None).await?;
    let tip_account = accounts
        .choose(&mut rand::rng())
        .ok_or("no tip account is live; retry shortly")?;
    println!("{tip_account}");
    Ok(())
}
Example response
{
  "jsonrpc": "2.0",
  "result": [
    "TIP_ACCOUNT_1",
    "TIP_ACCOUNT_2"
  ],
  "id": 1
}