AptosRequestGetTableItem class

Get a table item at a specific ledger version from the table identified by {table_handle} in the path and the "key" (TableItemRequest) provided in the request body.This is a POST endpoint because the "key" for requesting a specifictable item (TableItemRequest) could be quite complex, as each of its fields could themselves be composed of other structs. This makes itimpractical to express using query params, meaning GET isn't an option.The Aptos nodes prune account state history, via a configurable time window. If the requested ledger version has been pruned, the server responds with a 410. aptos documation

Inheritance

Constructors

AptosRequestGetTableItem.new({required AptosAddress tableHandle, required TableItemRequestParams data, BigInt? ledgerVersion})

Properties

body Map<String, dynamic>
no setteroverride
data TableItemRequestParams
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
no setterinherited
ledgerVersion BigInt?
Ledger version to get state of accountIf not provided, it will be the latest version
final
method String
no setteroverride
pathParameters List<String>
no setteroverride
queryParameters Map<String, String?>
no setteroverride
requestType → RequestServiceType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableHandle AptosAddress
Table handle hex encoded 32-byte string
final

Methods

buildRequest(int requestID) AptosRequestDetails
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(dynamic result) → dynamic
inherited
toString() String
A string representation of this object.
inherited

Operators

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