Transaction lifecycle
The signer may be a wallet, passkey flow, hardware device, HSM, enclave, or custody service. Your application owns that integration and the key material. The optional helper only adapts its result to the prepared transaction format.Credentials and imports
TypeScript
Authorization: Bearer <api-key> against
https://api.onswig.com. Set baseUrl / base_url only when targeting a
different trusted deployment.
Prepared response groups
Prepared responses preserve transaction order and expose embedded signature metadata. Treat the serialized Solana transaction as the final source of truth for transaction-level signers:
The word
client in the response schema identifies an API category. It does
not describe a shipped browser client, and the derived collections are not a
complete transaction-signature checklist. In particular, an Ed25519 requester
is represented as a required signer in the serialized Solana transaction while
signatureRequests remains empty.
Retries and safe repeats
4xx responses raise immediately. Network failures and 5xx responses use
the configured retry policy where the operation is safe to repeat.
Wallet handles
A server-side wallet handle binds the config address, optional wallet address, network, and requester authority used for preparation:TypeScript

