Skip to main content
Delegated Access is currently in Private Beta.
These actions run on your server using the decrypted delegated share and per‑wallet API key.

Use the delegated wallet

Once you decrypt and store the delegated materials, you can perform allowed actions scoped to that wallet.

Example: Sign a message (EVM)

Use the EVM helper to act on behalf of the user. walletApiKey comes from decrypting data.encryptedWalletApiKey; keyShare comes from decrypting data.encryptedDelegatedShare.
const { createDelegatedEvmWalletClient, delegatedSignMessage } = import('@dynamic-labs-wallet/node-evm');

const client = createDelegatedEvmWalletClient({
  environmentId,
  baseApiUrl,
  baseMPCRelayApiUrl,
  apiKey
});

const signature = await delegatedSignMessage(client, {
  walletId,
  walletApiKey,
  keyShare,
  message,
});

What's next?

Learn how revoking delegation works
I