Management API Reference

Smart wallets

Using smart wallets

Smart wallets in Openfort are your primary interface for blockchain interactions. Once an embedded signer is set up, a smart wallet is automatically created and associated for your user.

Getting an EIP-1193 provider#

All of Openfort's wallets can export a standard EIP-1193 provider object. This allows your app to request signatures and transactions from the wallet, using familiar JSON-RPC requests like personal_sign or eth_sendTransaction.

EIP-1193, also known as the Ethereum JavaScript API, is a standardized interface for how applications can request information, signatures, and transactions from a connected wallet.

To get a wallet's EIP-1193 provider, use the openfort getEthereumProvider method:

main.tsx
openfortConfig.ts

_10
import openfort from "./openfortConfig"
_10
// This example assumes you have already checked that Openfort 'embeddedState' is
_10
// `ready` and the user is `authenticated`
_10
const provider = await openfort.getEthereumProvider();

When requesting signatures and transactions from the wallet, you can either choose to interface with the EIP-1193 provider directly, or to pass it to a library like wagmi or viem.