For the complete documentation index, see llms.txt. This page is also available as Markdown.

Privy delegated access

Delegate a Kii Wallet to the KiiChain Pay signer so your backend can sign and broadcast transactions on the user's behalf — without a per-transaction prompt.

Because Kii Wallets are non-custodial, KiiChain Pay cannot sign a transaction from a user's wallet on its own — the keys belong to the user. Delegated access bridges that gap: the user authorizes the platform's signer to act on their embedded wallet, so your backend can sign and broadcast wallet operations through the API without prompting the user for every transaction.

Delegation is built on Privy's session signers. It is explicit, granted by the user, and required for any wallet-scoped API operation.

Delegation applies only to Kii Wallets. A user transacting with their own external wallet signs each transaction themselves — no delegation needed.

Why delegate

Without delegation, every on-chain action would need the user to sign in real time — impractical for automated, server-driven payments and FX. With delegation:

  • Your backend can execute swaps, off-ramps and transfers from the user's Kii Wallet via the API.

  • No per-transaction signing prompt.

  • Transactions remain gas-sponsored by KiiChain Pay.

Delegation authorizes signing on the user's own wallet. Funds still move only to the destinations your API calls specify; the platform signs on the user's behalf, it does not take custody of the keys.

How it works

Under the hood, delegation adds the KiiChain Pay session signer to the user's embedded wallet (Privy's addSigners). Once added, the platform can call Privy's wallet API to sign and broadcast transactions from that wallet. Privy exposes a delegated flag on the wallet, which KiiChain Pay reads to know whether server-side signing is available.

Granting delegation (dashboard)

The user grants delegation once, from the dashboard. In Settings → API Keys, use the Delegate Wallet action.

Delegate Wallet button
Settings → API Keys: the Delegate Wallet action, before delegation.

After confirming, the wallet shows a delegation active state:

Delegation active state
Once delegated, the panel confirms the Kii Wallet can be used for server-side signing.

What delegation unlocks

With a delegated wallet, wallet-scoped API operations — FX swaps, off-ramp settlements — are signed server-side from that user's wallet. Without delegation, those operations return an error.

The upcoming "send tokens from a Kii Wallet" endpoint will also require delegation.

Next steps

Last updated