Register a delegated signer
wallets:signatures.create
wallets:transactions.create
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); await wallet.addDelegatedSigner({ signer: externalSigner, });
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); const signers = await wallet.delegatedSigners();
Show properties
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); await wallet.addDelegatedSigner({ signer: externalSigner, expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30).getTime(), });
import { useWallet } from '@crossmint/client-sdk-react-ui'; const { wallet } = useWallet(); await wallet.addDelegatedSigner({ signer: externalSigner, permissions: permissions, });
const permissions = [ { type: "token-transfer", data: { allowance: allowance, token: tokenLocator, }, }, ];
const permissions = [ { type: "gas-limit", data: { limit: limit, // Maximum gas in decimal string }, }, ];
const permissions = [ { type: "call-limit", data: { count: count, // Maximum number of calls }, }, ];
Was this page helpful?