Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 3.87 KB

Transaction.md

File metadata and controls

40 lines (35 loc) · 3.87 KB

aptos_api_dart.model.Transaction

Load the model package

import 'package:aptos_api_dart/api.dart';

Properties

Name Type Description Notes
type String
hash String
sender String A hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
sequenceNumber String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
maxGasAmount String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
gasUnitPrice String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
expirationTimestampSecs String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
payload GenesisPayload
signature TransactionSignature [optional]
version String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
stateChangeHash String
eventRootHash String
stateCheckpointHash String [optional]
gasUsed String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
success bool Whether the transaction was successful
vmStatus String The VM status of the transaction, can tell useful information in a failure
accumulatorRootHash String
changes BuiltList<WriteSetChange> Final state of resources changed by the transaction
events BuiltList<Event> The events emitted at the block creation
timestamp String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
id String
epoch String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
round String A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
previousBlockVotesBitvec BuiltList<int> Previous block votes
proposer String A hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
failedProposerIndices BuiltList<int> The indices of the proposers who failed to propose

[Back to Model list] [Back to API list] [Back to README]