AddSignerParams

Represents the parameters for the addSigner function.

This function can be used wither be provided pre-generated signatures or the wallet accounts directly. This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)

If the appAccount is not provided, the signedKeyRequestMetadata , appAccountAddress and deadline must be provided. deadline must match the one used to generate the signature.

type AddSignerParams = Prettify<
{
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
signerPublicKey: Hex;
} & (
| { appAccount: Account }
| {
appAccountAddress: Address;
deadline: bigint;
signedKeyRequestMetadata: Hex;
}
)
>;