houndapi.schema package

Subpackages

Submodules

houndapi.schema.context module

class houndapi.schema.context.Context(*, label: str, result: PendingTransaction | LogsTransaction | str)[source]

Bases: BaseModel

the returned context from /api/poll

Parameters:
label: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

result: PendingTransaction | LogsTransaction | str
class houndapi.schema.context.LogsTransaction(*, address: str, topics: list[str], data: str, transaction_index: int, transaction_hash: str, log_index: int, removed: bool, block_hash: str, block_number: int)[source]

Bases: BaseModel

address: str
block_hash: str
block_number: int
data: str
classmethod from_web3(data: dict[str, Any]) Self[source]
log_index: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

removed: bool
topics: list[str]
transaction_hash: str
transaction_index: int
class houndapi.schema.context.PendingTransaction(*, address: str, gas: int, gas_price: int, max_fee_per_gas: int, max_priority_fee_per_gas: int, hash: str, input: str, nonce: int, to: str, value: int, type: int, access_list: list[str], chain_id: int, v: int, r: str, s: str, y_parity: str, transaction_index: int | None = None, block_hash: str | None = None, block_number: int | None = None)[source]

Bases: BaseModel

access_list: list[str]
address: str
block_hash: str | None
block_number: int | None
chain_id: int
classmethod from_web3(data: dict[str, Any]) Self[source]
gas: int
gas_price: int
hash: str
input: str
max_fee_per_gas: int
max_priority_fee_per_gas: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

nonce: int
r: str
s: str
to: str
transaction_index: int | None
type: int
v: int
value: int
y_parity: str

houndapi.schema.subscription module

class houndapi.schema.subscription.LogsSubscription(*, label: str | None, address: str | List[str], topics: List[str] | None)[source]

Bases: SubscriptionBase

address: str | List[str]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

topics: List[str] | None
property type: str
class houndapi.schema.subscription.PendingTransactionsSubscription(*, label: str | None, full_transactions: bool = False)[source]

Bases: SubscriptionBase

full_transactions: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property type: str
class houndapi.schema.subscription.SubscriptionBase(*, label: str | None)[source]

Bases: BaseModel

label: str | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property type: str

Module contents