Skip to content

feat(wallets): add idempotency key support to transfer - #187

Open
warneracw21 wants to merge 1 commit into
nextfrom
acw/transfer-idempotency-key
Open

feat(wallets): add idempotency key support to transfer#187
warneracw21 wants to merge 1 commit into
nextfrom
acw/transfer-idempotency-key

Conversation

@warneracw21

Copy link
Copy Markdown
Contributor

Summary

  • Adds idempotency_key to the transfer method input type, matching the pattern already used by rpc and rawSign
  • Threads the key through prepareRequest so it's sent as the privy-idempotency-key header

Usage

await privy.wallets().transfer(walletId, {
  source: { asset, amount, chain: sourceChain },
  destination: { address: destAddress, chain: destChain },
  authorization_context: { user_jwts: [jwt] },
  idempotency_key: 'my-unique-key',
});

Test plan

  • tsc --noEmit passes
  • Verify idempotency header is sent in integration test

🤖 Generated with Claude Code

The transfer method was missing idempotency key support that rpc and
rawSign already had. This threads the key through prepareRequest so
it gets sent as the privy-idempotency-key header.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@lucasloisp
lucasloisp changed the base branch from main to next July 16, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants