LyraAPI class

API to the Lyra blockchain.

Lyra provides standard JsonRPC api based on WebSocket from https://mainnet.lyra.live This API is a wrapper of Lyra JsonRPC API.

Constructors

LyraAPI(String network, String prvKey, String? nodeAddress)
network is 'mainnet', 'testnet', or 'devnet' prvKey is private key. provides null to nodeAddress to use the default url.

Properties

accountId String?
getter/setter pair
client ↔ Peer?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
network String
getter/setter pair
nodeAddress String?
getter/setter pair
prvKey String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ws ↔ WebSocketChannel?
getter/setter pair

Methods

balance() Future
get current balance
close() → void
close the API, remove private key
history(DateTime startTimeUtc, DateTime endTimeUtc, int count) Future
get transaction history
init() Future<void>
connect to JsonRPC and get service status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receive() Future
receive token
send(double amount, String destAddr, String token) Future
send token
toString() String
A string representation of this object.
inherited

Operators

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