Skip to main content

Table description

The aptos.move_modules table contains data on Move modules deployed on the Aptos blockchain. Move modules contain the bytecode for smart contracts and define the functionality and types used by Move resources. This table provides insight into the smart contract code running on the network, including the module’s author, name, and bytecode.

Table Schema

ColumnTypeDescription
block_heightBIGINTSequential number identifying the block’s position in the chain
block_dateDATEDate of the block for daily aggregations
block_timeTIMESTAMPTimestamp when the block was committed
block_hashVARBINARYUnique cryptographic hash identifying the block
block_first_versionUINT256First transaction version included in the block
block_last_versionUINT256Last transaction version included in the block
block_proposerVARBINARYAddress of the validator that proposed the block
block_roundUINT256Consensus round number for the block
block_epochUINT256Epoch number during which the block was created
block_metadata_idVARBINARYUnique identifier for the block metadata event
block_failed_proposer_indicesARRAY(INTEGER)Indices of validators that failed to propose before this block
block_previous_block_votes_bitvecARRAY(SMALLINT)Bit vector of validator votes on the previous block
tx_indexINTEGERPosition of the transaction within the block
tx_typeVARCHARType of the transaction (e.g. user_transaction, block_metadata)
tx_hashVARBINARYUnique hash identifying the transaction
tx_versionUINT256Global sequential version number of the transaction
tx_gas_usedUINT256Amount of gas consumed by the transaction
tx_vm_statusVARCHARDetailed status message returned by the Move VM
tx_successBOOLEANWhether the transaction executed successfully
tx_state_change_hashVARBINARYHash of all state changes produced by the transaction
tx_event_root_hashVARBINARYMerkle root hash of all events emitted by the transaction
tx_state_checkpoint_hashVARBINARYHash of the state checkpoint after this transaction
tx_accumulator_root_hashVARBINARYRoot hash of the transaction accumulator after this transaction
write_set_change_indexINTEGERIndex of this state change within the transaction’s write set
write_set_change_typeVARCHARType of write set change (e.g. write_module, delete_module)
move_state_key_hashVARBINARYHash of the state key affected by this change
move_is_deletionBOOLEANWhether this change represents a deletion of the module
move_addressVARBINARYAddress where the module is deployed
move_module_addressVARBINARYAddress of the module’s owner account
move_module_bytecodeVARCHARHex-encoded compiled Move bytecode of the module
move_module_module_nameVARCHARName of the Move module
move_module_friendsARRAY(ROW(NAME VARCHAR, ADDRESS VARBINARY))List of friend modules that have privileged access
move_module_exposed_functionsARRAY(ROW(NAME VARCHAR, VISIBILITY VARCHAR, IS_ENTRY BOOLEAN, IS_VIEW BOOLEAN, GENERIC_TYPE_PARAMS ARRAY(ROW(CONSTRAINTS ARRAY(VARCHAR))), PARAMS ARRAY(VARCHAR), RETURN_TYPE ARRAY(VARCHAR)))Public and entry functions exposed by the module
move_module_structsARRAY(ROW(NAME VARCHAR, IS_NATIVE BOOLEAN, ABILITIES ARRAY(VARCHAR), GENERIC_TYPE_PARAMS ARRAY(VARCHAR), FIELDS ARRAY(ROW(NAME VARCHAR, TYPE VARCHAR))))Struct types defined in the module

Table Sample