Contract class
A class that handles Tezos's contracts
- contractAddress is the address of this
It allows to :
- fetch the balance, storage, entrypoints of a contract
- compute the OperationsList related to a call of an entrypoint of a contract
If contractAddress is not found a TezartHttpError is thrown while calling a method of this
Constructors
- Contract({required String contractAddress, required RpcInterface rpcInterface})
Properties
-
balance
→ Future<
int> -
Returns the balance of this
no setter
- contractAddress → String
-
final
-
entrypoints
→ Future<
List< String> > -
Returns a
List
containing the entrypoints of thisno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- rpcInterface → RpcInterface
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → Future
-
Returns the storage in Dart Type of this using MichelineDecoder
no setter
Methods
-
callOperation(
{String entrypoint = 'default', dynamic params, required Keystore source, int amount = 0, int? customFee, int? customGasLimit, int? customStorageLimit}) → Future< OperationsList> -
Returns a
OperationsList
containing a TransactionOperation related to a call of an entrypoint of the contract -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited