Give third parties the possibility to transact with your wallet. Always maintain control over what that key can do with tight permissions and being able to revoke them at any time.

Prerequisites

  • Ensure you have a wallet created.
  • API Key: Ensure you have an API key with the scopes: wallets:signatures.create and wallets:transactions.create.

Adding a delegated signer

import { useWallet } from '@crossmint/client-sdk-react-ui';

const { wallet } = useWallet();

const externalSigner = {
    type: "external-wallet",
    address: "0x1234567890123456789012345678901234567890"
}

await wallet.addDelegatedSigner({
    signer: externalSigner,
});

Parameters

signer
string | object
required
The locator of the signer to add.

Getting all delegated signers

import { useWallet } from '@crossmint/client-sdk-react-ui';

const { wallet } = useWallet();

const signers = await wallet.delegatedSigners();

Returns

signers
DelegatedSigner[]
The delegated signers.