Skip to main content

Module credential

Module credential 

Source
Expand description

dYdX credential storage and wallet-based transaction signing helpers.

dYdX v4 uses Cosmos SDK-style wallet signing rather than API key authentication. Trading operations require signing transactions with a secp256k1 private key.

§Credential Resolution

Credentials are resolved in the following priority order:

  1. private_key from config
  2. DYDX_PRIVATE_KEY / DYDX_TESTNET_PRIVATE_KEY env var

Wallet address env vars: DYDX_WALLET_ADDRESS / DYDX_TESTNET_WALLET_ADDRESS

Structs§

DydxCredential
dYdX wallet credentials for signing blockchain transactions.

Functions§

resolve_wallet_address
Resolves wallet address from config value or environment variable.