ViteClient class

Inheritance
Implemented types

Constructors

ViteClient(RpcService service, {TypedSubscribeCallback? subscribeCallback})
ViteClient.ws(String url, {TypedSubscribeCallback? subscribeCallback})
factory

Properties

api RpcApi
latefinaloverride-getter
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service RpcService
final
subscriptionCallbackMapping Map<String, TypedSubscribeCallback>
getter/setter pair
typeMapping TypeMapping
latefinal

Methods

callOffchainMethod(ContractCallParams params) Future<Uint8List>
close() Future<void>
inherited
convertJson<T>(dynamic json) → T
override
createContractAddress(Address address, BigInt currentHeigh, Hash previousHash) Future<Address>
getAccountBlockByHash(Hash hash) Future<AccountBlock>
getAccountBlockByHeight(Address address, int height) Future<AccountBlock>
getAccountBlocks(Address address, {Hash? accountBlockHash, Token? token, int count = 1}) Future<List<AccountBlock>>
getAccountBlocksByAddress(Address address, {required int pageIndex, required int pageSize}) Future<List<AccountBlock>>
getAccountHashHeight(Address address) Future<HashHeight>
getAccountInfo(Address address) Future<AccountInfo>
getContractStorage(Address address, HashPrefix prefix) Future<Map<Hash, Uint8List>>
getLatestAccountBlock(Address address) Future<AccountBlock>
getPowDifficulty(PowDifficultyParams powParams) Future<PowDifficultyResult>
getPowNonce(BigInt difficulty, Hash powHash) Future<Uint8List>
override
getQuotaForAddress(Address address) Future<RpcQuotaInfo>
getSnapshotBlockByHeight(int height) Future<SnapshotBlock>
getTokenInfo(TokenId tokenId) Future<TokenInfo>
getTokenInfoList(int pageIndex, int pageSize) Future<TokenInfoList>
getUnreceivedBlocksByAddress(Address address, {int pageIndex = 0, int pageSize = 10}) Future<List<AccountBlock>>
getUnreceivedTransactionSummaryByAddress(Address address) Future<AccountInfo>
getVmLogs(Hash hash) Future<List<VmLog>>
getVmLogsByFilter(VmLogFilter param) Future<List<VmLogMessage>>
getVotedSbp(Address address) Future<RpcVoteInfo?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNewAccountBlock(TypedSubscribeCallback callback) Future<String>
onNewAccountBlockByAddress(Address address, TypedSubscribeCallback callback) Future<String>
onNewSnapshotBlock(TypedSubscribeCallback callback) Future<String>
onNewUnreceivedBlockByAddress(Address address, TypedSubscribeCallback callback) Future<String>
onNewVmLog<T>(VmLogFilter param, TypedSubscribeCallback callback) Future<String>
query(QueryParams params) Future<Uint8List>
sendRawTransaction(RawTransaction transaction) Future<void>
toString() String
A string representation of this object.
inherited
unsubscribe(String subscriptionId) Future<bool>

Operators

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