Skip to main content

@turnkey/viem

npm This package contains helpers to use Viem with Turnkey. We provide a Turnkey Custom Account (signer) which implements the signing APIs expected by Viem clients. If you need a lower-level, fully typed HTTP client for interacting with Turnkey API, check out @turnkey/http.

Getting started

Testing (Local)

  1. Copy .env.example to .env
  2. Start the Anvil node in one shell:
    • Install Foundry & Anvil if you haven’t done so already
    • Add Foundry to your $PATH
    • Source your env e.g.
    • Run foundryup to install Anvil
    • Start Anvil
  3. Run the tests in a new shell:

See also

Documents

Modules