houndapi.client.methods package

Submodules

houndapi.client.methods.poll module

class houndapi.client.methods.poll.Poll[source]

Bases: object

async poll(subscription_id: str, limit: int = 50) List[Context] | None[source]

Poll Subscription Events

Arg:

subscription_id (str): the subscription id limit (int, optional): the limit of polled events default=50

Returns:

Union[None, List[houndapi.schema.context.Context]]

houndapi.client.methods.subscribe module

class houndapi.client.methods.subscribe.Subscribe[source]

Bases: object

async subscribe(subscriptions: LogsSubscription | PendingTransactionsSubscription | List[LogsSubscription | PendingTransactionsSubscription]) SubscriptionResponse | None[source]

Subscribe

Parameters:

subscriptions (Union[Union[LogsSubscription, PendingTransactionsSubscription],List[Union[LogsSubscription, PendingTransactionsSubscription]]]]) – the Subscriptions

Returns:

Union[None, houndapi.schema.responses.subscription.SubscriptionResponse]

houndapi.client.methods.unsubscribe module

class houndapi.client.methods.unsubscribe.Unsubscribe[source]

Bases: object

async unsubscribe(subscription_id: str) SubscriptionResponse | None[source]

Unsubscribe

Parameters:

subscription_id (str) – the subscription id

Returns:

Union[None, houndapi.schema.responses.subscription.SubscriptionResponse]

Module contents

class houndapi.client.methods.APIMethods[source]

Bases: Subscribe, Unsubscribe, Poll