To provision a signer for a user’s wallets, use the delegateWallet method from the useHeadlessDelegatedActions hook:type delegateWallet = ({address: string, chainType: 'ethereum' | 'solana'}) => Promise<void>
Usage
import {useHeadlessDelegatedActions} from '@privy-io/react-auth';
const {delegateWallet} = useHeadlessDelegatedActions();
Parameters
The delegateWallet method accepts a params object with the following fields:Address of the embedded wallet to delegate.
Chain type of the embedded wallet to delegate.
In addition to a full whitelabel experience, Privy also offers a default UI component to prompt users to delegate their wallet and add a signer. Learn more To provision server-side access for a user’s wallets, use the delegateWallet method from the useHeadlessDelegatedActions hook:type delegateWallet: async ({address: string, chainType: 'ethereum' | 'solana'}) => Promise<void>
Usage
import {useHeadlessDelegatedActions} from '@privy-io/expo';
const {delegateWallet} = useHeadlessDelegatedActions();
Parameters
The delegateWallet method accepts a params object with the following fields:Address of the embedded wallet to delegate.
Chain type of the embedded wallet to delegate.