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.
There is no need to use the EIP1193 provider directly. Instead, use the Openfort SDK to interact with the smart wallet.
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
.
To get a wallet's EIP-1193 provider, use the openfort getEthereumProvider
method:
_10public class OpenfortManager : MonoBehaviour_10{_10 private OpenfortSDK openfort;_10_10 public async UniTask<Provider> GetEthereumProvider(EthereumProviderRequest request)_10 {_10 return await GetOpenfortImpl().GetEthereumProvider(request);_10 }_10 }