Smart wallet approvals and delegated payments
Review a server-created request and sign only the exact authorized payload.
Smart wallet request approval
List or fetch requests. Review the actual payload, intended action and signer address before user confirmation. The SDK checks expiry, chain and matching local signer in its approval helper. walletId here is the backend signer wallet ID.
const requests = await sdk.listSmartWalletRequests();
const detail = await sdk.getSmartWalletRequest({ requestId });
const payload = await sdk.getSmartWalletSigningPayload({ requestId, walletId: backendWalletId });
// After explicit review and any required server assurance:
await sdk.approveSmartWalletRequest({ requestId, walletId: backendWalletId });Reject or track request
Explicit rejection is a mutation; do not retry blindly. Polling is bounded. Reconcile on timeout.
// await sdk.rejectSmartWalletRequest({ requestId, reason });
const result = await sdk.waitForSmartWalletRequest({ requestId });Delegated payment approval
Fetch and review the delegated payment signing payload. Confirm signer, chain, scope and amount. Then approve and track the existing intent.
const payload = await sdk.getDelegatedPaymentSigningPayload({ delegatedPaymentIntentId, walletId: backendWalletId });
// After explicit confirmation and server-required authorization:
await sdk.approveDelegatedPayment({ delegatedPaymentIntentId, walletId: backendWalletId });
const status = await sdk.waitForDelegatedPayment({ delegatedPaymentIntentId });Organization smart wallet deployment
Creation and deployment are a single frontend journey: create, obtain deployment intent, execute, poll status, show ready. The inspected wallet SDK exposes signing/approval helpers, not a verified high-level create/deploy helper. Use the organization service contract for those calls; do not invent endpoints or treat deployment as complete after creation.
The actual organization deployment API contract is outside these SDK sources. Validate against the current service before wiring this journey.