diff --git a/hypersync/__init__.py b/hypersync/__init__.py index e31a031..4c66522 100644 --- a/hypersync/__init__.py +++ b/hypersync/__init__.py @@ -580,8 +580,9 @@ class TransactionSelection: sighash: Optional[list[str]] = None # If transaction.status matches this value, the transaction will be returned. status: Optional[int] = None - # If transaction.type matches any of these values, the transaction will be returned - kind: Optional[list[str]] = None + # If transaction.type matches any of these values, the transaction will be returned. + # Values are EIP-2718 transaction-type bytes (e.g. 0 legacy, 2 EIP-1559, 4 EIP-7702). + kind: Optional[list[int]] = None # If transaction.contract_address matches any of these values, the transaction will be returned. contract_address: Optional[list[str]] = None # If transaction.hash matches any of these values the transaction will be returned. diff --git a/src/query.rs b/src/query.rs index 4f32ac4..2de1bf3 100644 --- a/src/query.rs +++ b/src/query.rs @@ -56,7 +56,7 @@ pub struct TransactionSelection { pub status: Option, #[serde(skip_serializing_if = "Option::is_none")] #[serde(rename = "type")] - pub kind: Option>, + pub kind: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub contract_address: Option>, #[serde(skip_serializing_if = "Option::is_none")]