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
.
Copy .env.example
to .env
Start the Anvil node in one shell:
$PATH
foundryup
to install Anvil
Run the tests in a new shell:
@turnkey/example-with-viem
: example using this package to create, sign, and broadcast a transaction on Sepolia (Ethereum testnet)@turnkey/http
: lower-level fully typed HTTP client for interacting with Turnkey API@turnkey/api-key-stamper
: package to authenticate to Turnkey using API key credentials@turnkey/webauthn-stamper
: package to authenticate to Turnkey using Webauthn/passkeys.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
.
Copy .env.example
to .env
Start the Anvil node in one shell:
$PATH
foundryup
to install Anvil
Run the tests in a new shell:
@turnkey/example-with-viem
: example using this package to create, sign, and broadcast a transaction on Sepolia (Ethereum testnet)@turnkey/http
: lower-level fully typed HTTP client for interacting with Turnkey API@turnkey/api-key-stamper
: package to authenticate to Turnkey using API key credentials@turnkey/webauthn-stamper
: package to authenticate to Turnkey using Webauthn/passkeys.