UTILS

UTILS methods handle cryptographic operations.

UTILS Methods‌

sdk.

  • signMessage()

  • exportPrivateKey()

  • getBalance()

  • subscribeBalance()

signMessage(message)

Signs a message using the private key associated with the account address and returns the resulting signature.

This method takes a single parameter: a message string value that will produce a unique signature specific to that message.

exportPrivateKey()

Exports the private key associated with the account address and returns the private key Ethereum address.

getBalance([options])

Gets the balance of the account address.

OPTION

DESCRIPTION

address

An address value to get the balance for.

token

An address value to specify the balance of an ERC20 token.

subscribeBalance([options])

Subscribes to the balance of an account address.

DESCRIPTION

address

An address value to subscribe to.

token

An address value to subscribe to the balance of an ERC20 token.

If you encounter any bugs or issues, let us know in our early access Telegram chat group and we'd love to help!