Skip to content

Transaction module-attribute

Transaction = TypedDict(
    "Transaction",
    {
        "network": "capo_managedblockchain_query.types.query_network.QueryNetwork",
        "block_hash": NotRequired[
            "capo_managedblockchain_query.types.block_hash.BlockHash"
        ],
        "transaction_hash": "capo_managedblockchain_query.types.query_transaction_hash.QueryTransactionHash",
        "block_number": NotRequired["str"],
        "transaction_timestamp": "datetime.datetime",
        "transaction_index": "int",
        "number_of_transactions": "int",
        "to": "capo_managedblockchain_query.types.chain_address.ChainAddress",
        "from": NotRequired[
            "capo_managedblockchain_query.types.chain_address.ChainAddress"
        ],
        "contract_address": NotRequired[
            "capo_managedblockchain_query.types.chain_address.ChainAddress"
        ],
        "gas_used": NotRequired["str"],
        "cumulative_gas_used": NotRequired["str"],
        "effective_gas_price": NotRequired["str"],
        "signature_v": NotRequired["int"],
        "signature_r": NotRequired["str"],
        "signature_s": NotRequired["str"],
        "transaction_fee": NotRequired["str"],
        "transaction_id": NotRequired["str"],
        "confirmation_status": NotRequired[
            "capo_managedblockchain_query.types.confirmation_status.ConfirmationStatus"
        ],
        "execution_status": NotRequired[
            "capo_managedblockchain_query.types.execution_status.ExecutionStatus"
        ],
    },
    closed=True,
)