RpcInterface class
A class that handles the calls to a Tezos RPC Node
url
is the url of the node
Constructors
- RpcInterface(String url)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → TezartHttpClient
-
final
- log → Logger
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
balance(
String address, [dynamic chain = 'main', dynamic level = 'head']) → Future< int> -
Returns the balance of
address
in the chain defined bychain
andlevel
-
bigMapValue(
{required String id, required String encodedScriptExpression, dynamic chain = 'main', dynamic level = 'head'}) → Future - Returns the value of a key in a big map
-
block(
{required String chain, required String level}) → Future< Map< String, dynamic> > -
Returns the block hash of
chain
andlevel
-
branch(
[dynamic chain = 'main', dynamic level = 'head']) → Future< String> -
Returns the block's hash of
chain
andlevel
-
chainId(
[dynamic chain = 'main']) → Future< String> -
Returns the chain id of
chain
-
constants(
[dynamic chain = 'main', dynamic level = 'head']) → Future< Map< String, dynamic> > -
Returns the constants of the chain defined by
chain
andlevel
-
counter(
String source, [dynamic chain = 'main', dynamic level = 'head']) → Future< int> -
Returns the counter of
source
in the chain defined bychain
andlevel
-
forgeOperations(
OperationsList operationsList, [dynamic chain = 'main', dynamic level = 'head']) → Future< String> -
Returns the forged operation of
operationsList
in the chain defined bychain
andlevel
-
getContract(
String address, [dynamic chain = 'main', dynamic level = 'head']) → Future< Map< String, dynamic> > -
Returns the complete status of the contract whom address is
address
-
getContractEntrypoints(
String address, [dynamic chain = 'main', dynamic level = 'head']) → Future< Map< String, dynamic> > -
Returns a map containing the entrypoints and their types of a contract defined by
address
-
getContractEntrypointType(
{required String address, required String entrypoint, dynamic chain = 'main', dynamic level = 'head'}) → Future< Map< String, dynamic> > -
Returns the type of
entrypoint
of the contract defined byaddress
-
injectOperation(
String data, [dynamic chain = 'main']) → Future< String> -
Injects the forged operation
data
inchain
and returns the operation id -
managerKey(
String address, [dynamic chain = 'main', dynamic level = 'head']) → Future< String?> -
Returns the public key of
address
-
monitorOperation(
{required String operationId, dynamic chain = 'main', dynamic level = 'head'}) → 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
-
pack(
{required dynamic data, required Map< String, dynamic> type, dynamic chain = 'main', dynamic level = 'head'}) → Future<String> -
Packs
data
usingtype
-
pendingOperations(
[dynamic chain = 'main']) → Future< Map< String, dynamic> > -
Returns the pending operations of
chain
-
preapplyOperations(
{required OperationsList operationsList, required String signature, dynamic chain = 'main', dynamic level = 'head'}) → Future< List> -
Preapplies
operationsList
usingsignature
in the chain defined bychain
andlevel
and returns the simlation result -
protocol(
[dynamic chain = 'main', dynamic level = 'head']) → Future< String> -
Returns the protocol of
chain
andlevel
-
runOperations(
OperationsList operationsList, [dynamic chain = 'main', dynamic level = 'head']) → Future< List> - Same as preapplyOperations but uses a random signature
-
toString(
) → String -
A string representation of this object.
inherited
-
transactionsOperationHashes(
{required String level, dynamic chain = 'main'}) → Future< List< String> > -
Returns the applied transactions hashes in
chain
andlevel
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited