> ## Documentation Index
> Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Request Signing for the Node SDK

> Learn how approved beta customers authenticate Node SDK requests with a signing key registered to their Dynamic environment.

> [!WARNING]
>
> Request signing is available only to approved beta and test customers. Dynamic must enable it for each environment, and enrolled customers must use the beta Node SDK version that Dynamic provides. Unless Dynamic has confirmed that your environment is enabled, continue using [`authenticateApiToken`](https://www.dynamic.xyz/docs/node/quickstart).

Request signing authenticates requests from the Dynamic Node SDK. You register a public signing key to your project environment, then configure the SDK with the corresponding private key and a Dynamic API token. The SDK signs each request so Dynamic can verify which registered server sent it and whether the request changed in transit.

Once Dynamic enables request signing for your environment, you can use it to authenticate standard Node SDK operations such as creating a wallet. Request signing does not require delegated access, an encryption key, or a webhook unless the workflow you build has those separate requirements.

## Prerequisites

Before you configure request signing, you need:

* Confirmation from Dynamic that request signing is enabled for your environment.
* The beta Node SDK version supplied during enrollment.
* Your Dynamic environment ID and an API token from the [Dynamic Console](https://console.dynamic.xyz/dashboard/developer/api).

## Register a signing key

Registering a signing key maps your server identity to one Dynamic environment.

1. Open the [Developer dashboard](https://app.dynamic.xyz/dashboard/developer/api), then go to **Server Signing Keys**.
2. Select **Add signing key** and enter a label, such as `Production server`.
3. Generate a P-256 key pair:
   * Select **Generate key pair automatically** to create the pair in your browser.
   * Select **Bring your own key pair** to register the public key in SEC1 hexadecimal format for a pair you manage.
4. Select **Add**. When the Dynamic Console generates the pair, save the private key when it appears.
5. Store the private key in a secrets manager, hardware security module (HSM), or key management service (KMS) that your server can access.

> [!WARNING]
>
> Dynamic stores only the public key and cannot display the private key again. Never commit the private key, expose it to a client, log it, or send it to Dynamic.

## Authenticate Node SDK requests

Configure `requestSigningOption` with the registered private key and your API token. The SDK signs subsequent requests from the client.

```typescript theme={"system"}
import { requestSigningOption } from '@dynamic-labs-wallet/node';
import { DynamicEvmWalletClient } from '@dynamic-labs-wallet/node-evm';

const DYNAMIC_ENVIRONMENT_ID = process.env.DYNAMIC_ENVIRONMENT_ID;
const DYNAMIC_API_TOKEN = process.env.DYNAMIC_API_TOKEN;
const DYNAMIC_SIGNING_PRIVATE_KEY = process.env.DYNAMIC_SIGNING_PRIVATE_KEY;

if (!DYNAMIC_ENVIRONMENT_ID || !DYNAMIC_API_TOKEN || !DYNAMIC_SIGNING_PRIVATE_KEY) {
  throw new Error('Missing Dynamic server authentication configuration');
}

const client = new DynamicEvmWalletClient({
  environmentId: DYNAMIC_ENVIRONMENT_ID,
  requestSigning: requestSigningOption({
    signingPrivateKeyHex: DYNAMIC_SIGNING_PRIVATE_KEY,
    apiToken: DYNAMIC_API_TOKEN,
  }),
});
```

Use the authenticated client for standard Node SDK operations. The private key proves which registered server sent the request, and the API token remains part of the beta request-signing configuration.

> [!NOTE]
>
> To combine request signing with Business Account approval requirements, follow [Delegate to a Server Signer](https://www.dynamic.xyz/docs/business-accounts/cookbooks/delegate-to-server-signer.md).

## Security considerations

Use a separate signing key for each server identity and environment. Restrict access to the private key to the service that signs requests, and rotate or revoke the registered key when you suspect exposure.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.