ApiService class

Constructors

ApiService(String? endpoint)

Properties

endpoint String?
endpoint is the HTTP URL to a ArchEthic node (acting as welcome node)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logger ↔ Logger
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchBalance(String address) Future<Balance>
Query the network to find a balance from an address @param {String} The address scalar type represents a cryptographic hash used in the ArchEthic network with an identification byte to specify from which algorithm the hash was generated. The Hash appears in a JSON response as Base16 formatted string. The parsed hash will be converted to a binary and any invalid hash with an invalid algorithm or invalid size will be rejected Returns Balance represents a ledger balance. It includes: UCO: uco balance & NFT: NFT balances
getLastTransaction(String address) Future<Transaction>
Query the network to find the last transaction from an address @param {String} The address scalar type represents a cryptographic hash used in the ArchEthic network with an identification byte to specify from which algorithm the hash was generated. The Hash appears in a JSON response as Base16 formatted string. The parsed hash will be converted to a binary and any invalid hash with an invalid algorithm or invalid size will be rejected
getNodeList() Future<List<Node>>
Query the node infos Returns a List<Node> with infos
getStorageNoncePublicKey() Future<String>
getStorageNoncePublicKey
getTransactionChain(String address, int page) Future<List<Transaction>>
Query the network to find a transaction chain @param {String} The address scalar type represents a cryptographic hash used in the ArchEthic network with an identification byte to specify from which algorithm the hash was generated. The Hash appears in a JSON response as Base16 formatted string. The parsed hash will be converted to a binary and any invalid hash with an invalid algorithm or invalid size will be rejected @param {int} The page Returns the content scalar type represents transaction content List<Transaction>. Depending if the content can displayed it will be rendered as plain text otherwise in hexadecimal
getTransactionContent(String address) Future<String>
Query the network to find a transaction @param {String} The address scalar type represents a cryptographic hash used in the ArchEthic network with an identification byte to specify from which algorithm the hash was generated. The Hash appears in a JSON response as Base16 formatted string. The parsed hash will be converted to a binary and any invalid hash with an invalid algorithm or invalid size will be rejected Returns the content scalar type represents transaction content. Depending if the content can displayed it will be rendered as plain text otherwise in hexadecimal
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendTx(Transaction transaction) Future<TransactionStatus>
Send a transaction to the network @param {Object} tx Transaction to send
toString() String
A string representation of this object.
inherited

Operators

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