Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tkhq/sdk/llms.txt
Use this file to discover all available pages before exploring further.
@turnkey/eip-1193-provider delivers a Turnkey-compatible Ethereum provider that adheres to the EIP-1193 standard. It supports account management, message signing, transaction signing, and direct RPC forwarding across any EVM-compatible chain.
Authentication uses WebAuthn passkeys by default via
@turnkey/webauthn-stamper. Passkey prompts appear when the user calls signing methods such as eth_requestAccounts, personal_sign, or eth_sendTransaction.Installation
Initialization
Configuration options
createEIP1193Provider accepts a TurnkeyEIP1193ProviderOptions object:
The ID of the Turnkey wallet to use for signing. Accounts are derived from this wallet.
The Turnkey organization ID (or sub-organization ID) that owns the wallet.
A Turnkey client instance configured with a stamper.
An array of chain configurations. Each chain requires a
chainName, a chainId (hex string), and at least one rpcUrls entry. The provider validates that each chainId matches the value returned by the RPC endpoint at initialization.Supported JSON-RPC methods
The provider handles these methods directly using Turnkey signing:| Method | Description |
|---|---|
eth_requestAccounts | Returns all Ethereum addresses in the configured wallet. Prompts passkey authentication. |
eth_accounts | Returns the current list of connected accounts. |
personal_sign | Signs a message with the specified account. Prompts passkey authentication. |
eth_sign | Signs data with the specified account. Prompts passkey authentication. |
eth_signTypedData_v4 | Signs EIP-712 typed data. Prompts passkey authentication. |
eth_signTransaction | Signs a transaction without broadcasting it. Prompts passkey authentication. |
eth_sendTransaction | Signs a transaction and broadcasts it via the configured RPC endpoint. |
eth_blockNumber, eth_getBalance, eth_call, eth_estimateGas, eth_getLogs) are forwarded directly to the active chain’s RPC URL.
Multi-chain support
Pass multiple chains to support chain switching at runtime:wallet_switchEthereumChain method:
wallet_addEthereumChain:
Events
The provider emits standard EIP-1193 events:| Event | When emitted |
|---|---|
connect | The provider successfully connects to a chain |
disconnect | The provider is disconnected from all configured chains |
chainChanged | The active chain is switched via wallet_switchEthereumChain |