Using smart wallets
Smart wallets in Openfort are your primary interface for blockchain interactions. Once an embedded wallet 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
.
To get a wallet's EIP-1193 provider, use the openfort getEthereumProvider
method:
public class OpenfortManager : MonoBehaviour
{
private OpenfortSDK openfort;
public async UniTask<Provider> GetEthereumProvider(EthereumProviderRequest request)
{
return await GetOpenfortImpl().GetEthereumProvider(request);
}
}