Skip to main content

Import

import { recoverPasskeyOwnership } from '@rhinestone/sdk/actions/recovery'

Usage

const transaction = await account.prepareTransaction({
  chain,
  calls: await recoverPasskeyOwnership(address, oldCredentials, newOwners, chain, config),
})

Parameters

address
`0x${string}`
required
Account address
oldCredentials
{ pubKeyX: bigint; pubKeyY: bigint }[]
required
Old credentials to be replaced (with pubKeyX, pubKeyY)
newOwners
WebauthnValidatorConfig
required
New passkey owners
chain
Chain
required
Chain to recover ownership on
config
RhinestoneConfig
required

Returns

call
CalldataInput[]
Calls to recover ownership