AddSignerForParams

Represents the parameters for the addSignerFor 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 userAccount is not provided, the addSignature , userAddress , and deadline must be provided. If the appAccount is not provided, the signedKeyRequestMetadata , appAccountAddress and deadline must be provided. deadline must match the one used to generate the signatures.

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