WebsocketRpc class
Constructors
- WebsocketRpc(String url)
Properties
- channel ↔ IOWebSocketChannel
-
read / write
-
pendings
↔ Map<
String, Pending> -
read / write
- reconnectCurTimes ↔ int
-
read / write
- reconnectDelay ↔ int
-
read / write
- reconnectTimes ↔ int
-
read / write
- state ↔ WebsocketRpcState
-
read / write
- url ↔ String
-
read / write
-
waitNotifyPendings
↔ Map<
String, Pending> -
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
close(
) → dynamic -
connect(
) → dynamic -
getAllowance(
String asset, Address from, Address to) → Future -
getBalance(
Address address) → Future -
getBlockByHash(
String hash, { bool json: false }) → Future -
getBlockByHeight(
int height, { bool json: false }) → Future -
getBlockHash(
int height) → Future -
getBlockHeight(
) → Future -
getBlockHeightByTxHash(
String txHash) → Future -
getBlockTxsByHeight(
int height) → Future -
getContract(
String hash, { bool json: false }) → Future -
getGasPrice(
) → Future -
getGrantOng(
Address address) → Future -
getMempoolTxCount(
) → Future -
getMempoolTxState(
String txHash) → Future -
getMerkleProof(
String hash) → Future -
getNetworkId(
) → Future -
getNodeCount(
) → Future -
getRawTransaction(
String txHash, { bool json: false }) → Future -
getSmartCodeEventByHash(
String hash) → Future -
getSmartCodeEventByHeight(
int height) → Future -
getStorage(
String codeHash, String key) → Future -
getUnboundOng(
Address address) → Future -
getUnclaimedOng(
Address addr) → Future -
getVersion(
) → Future -
send(
Map< String, dynamic> data) → Future -
sendRawTx(
Uint8List rawTx, { bool preExec: true }) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited