ApiService class Null safety

Constructors

ApiService()

Properties

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

fetchBalance(String address, String endpoint) Future<BalanceResponse>
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 @param {String} The endpoint Returns BalanceResponse represents a ledger balance. It includes: UCO: uco balance & NFT: NFT balances
getNodeList(String endpoint) Future<NodesResponse>
Query the node infos @param {String} The endpoint Returns the Node infos
getStorageNoncePublicKey(String endpoint) Future<String>
getStorageNoncePublicKey @param {String} The endpoint
getTransactionContent(String address, String endpoint) 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 @param {String} The endpoint Returns the Content scalar type represents transaction content. Depending if the content can displayed it will be rendered as plain text otherwise in hexadecimal
getTransactionIndex(String address, String endpoint) Future<int>
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 @param {String} The endpoint
getTransactions(String address, int page, String endpoint) Future<TransactionsResponse>
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 @param {String} The endpoint 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 non-existent method or property is accessed. [...]
inherited
sendTx(dynamic tx, String endpoint) → dynamic
Send a transaction to the network @param {Object} tx Transaction to send @param {String} endpoint Node endpoint
toString() String
A string representation of this object. [...]
inherited

Operators

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