From 5817de9e1c380b3905882c07be902c0c0d326988 Mon Sep 17 00:00:00 2001 From: Daniel Somoza Date: Fri, 10 May 2024 12:25:37 +0200 Subject: [PATCH] Update readme --- packages/protocol-kit/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/protocol-kit/README.md b/packages/protocol-kit/README.md index 355f1616c..1c80f003b 100644 --- a/packages/protocol-kit/README.md +++ b/packages/protocol-kit/README.md @@ -872,6 +872,18 @@ const txResponse = await safeSdk.executeTransaction(safeTransaction) await txResponse.transactionResponse?.wait() ``` +This method can optionally receive a passkey parameter: + +```js +const params: AddPasskeyOwnerTxParams = { + passkey, + threshold // Optional. If `threshold` is not provided the current threshold will not change. +} +const safeTransaction = await safeSdk.createAddOwnerTx(params) +const txResponse = await safeSdk.executeTransaction(safeTransaction) +await txResponse.transactionResponse?.wait() +``` + This method can optionally receive the `options` parameter: ```js