You will need to install the Paradex SDK to instantiate a Paradex chain adapter. As Paradex can derive an account from either a Starknet or an EVM based signature, you have two options of initializing a Paradex account to be passed into the chain adapter function.
Copy
import { Account, Config, ParaclearProvider } from '@paradex/sdk'const config = Config.fetchConfig('prod')const paradexAccount = await Account.fromStarknetAccount( { provider: new ParaclearProvider.DefaultProvider(config), config, account // your starknet.js account },)
Once you have your Paradex account object set up, you can create the chain adapter from it: