Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/public-api/services/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,15 @@ export class PrivyWalletsService extends Wallets {

public async transfer(
walletId: string,
{ authorization_context: authorizationContext = {}, ...params }: PrivyWalletsService.TransferInput,
{
authorization_context: authorizationContext = {},
idempotency_key: idempotencyKey,
...params
}: PrivyWalletsService.TransferInput,
): Promise<TransferActionResponse> {
const { headers } = await prepareRequest(this.privyClient, this._client.appID, {
authorizationContext,
idempotencyKey,
requestExpiry: this.privyClient.getRequestExpiry(),
method: 'POST',
url: `${this._client.baseURL}/v1/wallets/${walletId}/transfer`,
Expand Down Expand Up @@ -265,7 +270,7 @@ export namespace PrivyWalletsService {
/** The input type for the {@link PrivyWalletsService.update} method. */
export type UpdateInput = Prettify<WithExpiry<WithAuthorization<WalletUpdateParams>>>;
/** The input type for the {@link PrivyWalletsService.transfer} method. */
export type TransferInput = Prettify<WithAuthorization<WalletTransferParams>>;
export type TransferInput = Prettify<WithIdempotency<WithAuthorization<WalletTransferParams>>>;
/** The input type for the {@link PrivyWalletsService.export} method. */
export type ExportInput = Prettify<WithExpiry<WithAuthorization<Omit<WalletExportParams, 'encryption_type' | 'recipient_public_key'>>>>;
/** The response type for the {@link PrivyWalletsService.export} method. */
Expand Down
Loading