Wallet preloading
preloadWallet()
Preloads the wallet service to improve performance by initializing the wallet infrastructure before it’s needed. Method Signature:- The wallet can be preloaded even before the user is logged in
- Improves response time for subsequent wallet operations
- Even if preloading hasn’t finished, using the provider or any other wallet operation will ensure that the wallet is done initializing before executing the actual call
- Service must be initialized
EIP-1193 wallet provider
getProvider()
Returns an EIP-1193 compatible provider that works seamlessly with popular Web3 libraries such as web3, ethers, and Viem. Method Signature:- User must be logged in
Standard RPC methods
The provider also supports all standard EIP-1193 methods:Error handling
provider.request(...) rejects with a standard EIP-1193 error, so wagmi, viem, and ethers handle AIR Kit errors the same way as any other wallet:
When the failure came from AIR,
error.data.air holds the same { code, category, message, eventId } as an AirKitError: