Protected
clientReadonly
currentCurrent account data.
Protected
eip712Protected
listenersProtected
providerProtected
emitCreate Ethers.js Wallet instance from username and password. This method is used internally to create a wallet for the user. You can use this method to create a wallet if you need to sign transactions.
Sogni account username
Sogni account password
Refresh the balance of the current account.
Usually, you don't need to call this method manually. Balance is updated automatically through WebSocket events. But you can call this method to force a balance refresh.
Switch between fast and relaxed networks. Note: This method will close the current WebSocket connection and establish a new one. Do not call this method if you have any active projects.
Get the transaction history of the current account.
Transaction history query parameters
Transaction history entries and next query parameters
Account API methods that let you interact with the user's account. Can be accessed via
client.account
. Look for more samples below.Example: Retrieve the current account balance