IWalletService

Service for interacting with the wallet API.

Properties

string WalletAddress

Address of the wallet that is currently logged in.

Methods

UniTask RequestToSign(string messageToSign, RequestToSignSuccess success, ErrorCallback errorCallback)

Attempts to sign a message using the walletconnect protocol, the RequestToSignSuccess callback will return the signed message.

UniTask Handshake(HandshakeSuccess success, ErrorCallback errorCallback)

Attempts to handshake with the Emergence server, retrieving the wallet address if successful.

UniTask GetBalance(BalanceSuccess success, ErrorCallback errorCallback)

Attempts to get the balance of the wallet, the BalanceSuccess callback will fire with the balance if successful.

UniTask ValidateSignedMessage(string message, string signedMessage, string address, ValidateSignedMessageSuccess success, ErrorCallback errorCallback)

Attempts to validate a signed message. The success callback will fire with the validation result if the call is successful.

Last updated