TezartClient class
A client that connects to the Tezos node.
final client = TezartClient('http://localhost:20000/');
The methods throw TezartNodeError if a node error occurs.
Injection operations are retried 3 times if a counter error ocurs.
Amounts are in µtz. 1tz = 1000000µtz.
Constructors
- TezartClient(String url)
- Default constructor.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
final
- rpcInterface → RpcInterface
-
A RpcInterface instance, generated using
url
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBalance(
{required String address}) → Future< int> -
Returns the balance in µtz of
address
. -
isKeyRevealed(
String address) → Future< bool> -
Returns
true
if the public key ofaddress
is revealed. -
monitorOperation(
String operationId) → Future< String> -
Waits for
operationId
to be included in a block. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
originateContractOperation(
{required Keystore source, required List< Map< code, required dynamic storage, required int balance, int? customFee, int? customGasLimit, int? customStorageLimit, bool reveal = true}) → Future<String, dynamic> >OperationsList> -
Returns an
OperationsList
that originates a contract initiated bysource
-
revealKeyOperation(
Keystore source, {int? customFee, int? customGasLimit, int? customStorageLimit}) → OperationsList -
Returns an OperationsList that reveals
source
publicKey. -
toString(
) → String -
A string representation of this object.
inherited
-
transferOperation(
{required Keystore source, required String destination, required int amount, int? customFee, int? customGasLimit, int? customStorageLimit, bool reveal = true}) → Future< OperationsList> -
Returns an
OperationsList
containing a TransactionOperation that transfersamount
fromsource
todestination
and returns the operation group id.\
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited