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 by chain and level
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 and level
branch([dynamic chain = 'main', dynamic level = 'head']) Future<String>
Returns the block's hash of chain and level
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 and level
counter(String source, [dynamic chain = 'main', dynamic level = 'head']) Future<int>
Returns the counter of source in the chain defined by chain and level
forgeOperations(OperationsList operationsList, [dynamic chain = 'main', dynamic level = 'head']) Future<String>
Returns the forged operation of operationsList in the chain defined by chain and level
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 by address
injectOperation(String data, [dynamic chain = 'main']) Future<String>
Injects the forged operation data in chain 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 using type
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 using signature in the chain defined by chain and level and returns the simlation result
protocol([dynamic chain = 'main', dynamic level = 'head']) Future<String>
Returns the protocol of chain and level
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 and level

Operators

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