ApiUOS class

Steps to complete offline-signature as a cold-wallet:

  1. parseQrCode: parse raw data of QR code, and get signer address from it.
  2. signAsync: sign the extrinsic with password, get signature.
  3. addSignatureAndSend: send tx with address of step1 & signature of step2.

Support offline-signature as a hot-wallet: makeQrCode

Constructors

ApiUOS(Web3WalletApi apiRoot, ServiceUOS service)

Properties

apiRoot Web3WalletApi
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service ServiceUOS
final

Methods

addSignatureAndSend(String address, dynamic signed, dynamic onStatusChange(String)) Future<Map?>
onStatusChange is a callback when tx status change. @return txHash string if tx finalized success.
makeQrCode(TxInfoData txInfo, List params, {String? rawParam}) Future<Map?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseQrCode(Keyring keyring, String data) Future<String>
parse data of QR code. @return: signer pubKey String
signAsync(String chain, dynamic password) Future<String?>
this function must be called after parseQrCode. @return: signature String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited