TriportRPC

Get a watchlist entry

GEThttps://api.triport.io/v1/sol/watchlist/9b1f4a7e-3c2d-4f8a-8b6e-2d1c5a9e7f00

Fetch a single Solana watchlist entry by its `id` — returned only when it belongs to your authenticated tenant.

Solanasol_watchlistbusiness — sustained RPS for the sol_watchlist category, with a 2× burst allowance

A watchlist entry registers a Solana account (pubkey) so that Triport pushes you a notification — over a webhook or a WebSocket channel — whenever that account changes on chain. This endpoint reads back one such entry by its server generated id.

Use it to confirm what a previously created subscription looks like (its commitment, callback_type, and callback_url), or to poll an entry's metadata before deciding to delete it.

Entries are scoped per tenant. The tenant is derived from your API credentials, not from any field you send — so an entry created by another project's key is invisible to you and will return 404, not the entry. To list every entry your key owns, use GET /v1/sol/watchlist.

Parameters

Path parameters

idstring (uuid)required
The entry's unique identifier, as returned by POST /v1/sol/watchlist at creation.

Response

200 OK

idstring (uuid)
Unique identifier of this watchlist entry.
tenant_idstring
Owning tenant, derived from your auth credentials.
pubkeystring
The Solana base58 account pubkey being watched (32–44 chars).
commitmentstring
Commitment level the subscription fires at: processed, confirmed, or finalized. Defaults to confirmed.
callback_typestring
Delivery transport: webhook or ws.
callback_urlstring (uri)
Webhook delivery URL, or — for ws — the client-side identifier. May be absent if it was not set at creation.
created_atstring (date-time)
When the entry was created.

Errors

CodeerrorMeaningWhen it happens
401unauthorized / trial_expired / subscription_expiredAuthentication failedMissing or invalid credentials, or the key's trial/subscription has lapsed.
403tier_insufficient / method_unknownNot allowed for this keyThe key's tier is below business, or it lacks the sol_watchlist scope.
404resource_not_foundNo such entry for this tenantThe id does not exist, or it belongs to a different tenant.
429rate_limitedRate limit exceededSustained RPS for the sol_watchlist category was exceeded; honor the Retry-After header.

All errors share the standard envelope (error, message, request_id); see Errors for the full structure and the per-status response shapes.

Examples

JavaScript (fetch)

const id = "9b1f4a7e-3c2d-4f8a-8b6e-2d1c5a9e7f00";


const res = await fetch(
  `https://api.triport.io/v1/sol/watchlist/${id}`,
  {
    headers: {
      Authorization: `Bearer ${process.env.TRIPORT_API_KEY}`,
      "Content-Type": "application/json",
    },
  }
);


if (res.status === 404) {
  throw new Error("Watchlist entry not found");
}
if (!res.ok) {
  throw new Error(`Request failed: ${res.status}`);
}


const entry = await res.json();
console.log(entry.pubkey, entry.callback_type);

TypeScript SDK (@triport/sdk)

import { Triport } from "@triport/sdk";


const client = new Triport({ apiKey: process.env.TRIPORT_API_KEY! });


const entry = await client.sol.watchlist.get(
  "9b1f4a7e-3c2d-4f8a-8b6e-2d1c5a9e7f00"
);


console.log(entry.commitment, entry.callbackUrl);

Python (triport-sdk)

import os
from triport import Triport


client = Triport(api_key=os.environ["TRIPORT_API_KEY"])


entry = client.sol.watchlist.get("9b1f4a7e-3c2d-4f8a-8b6e-2d1c5a9e7f00")


print(entry.pubkey, entry.callback_type)

Notes

  • Tenant isolation: a missing entry and an entry owned by another tenant are indistinguishable — both return 404. There is no way to read another project's subscriptions.
  • Related endpoints:
  • Authentication: the credential can be supplied as a Bearer token, an X-API-Key header, or a legacy ?api-key= query parameter. The Bearer header is preferred.