filter
class human_protocol_sdk.filter.EscrowFilter(chain_id, launcher=None, reputation_oracle=None, recording_oracle=None, exchange_oracle=None, job_requester_id=None, status=None, date_from=None, date_to=None, first=10, skip=0, order_direction=OrderDirection.DESC)
Bases: object
A class used to filter escrow requests.
__init__(chain_id, launcher=None, reputation_oracle=None, recording_oracle=None, exchange_oracle=None, job_requester_id=None, status=None, date_from=None, date_to=None, first=10, skip=0, order_direction=OrderDirection.DESC)
Initializes a EscrowFilter instance.
Parameters:
chain_id (
ChainId
) – Network to request datalauncher (
Optional
[str
]) – Launcher addressreputation_oracle (
Optional
[str
]) – Reputation oracle addressrecording_oracle (
Optional
[str
]) – Recording oracle addressexchange_oracle (
Optional
[str
]) – Exchange oracle addressjob_requester_id (
Optional
[str
]) – Job requester idstatus (
Optional
[Status
]) – Escrow statusdate_from (
Optional
[datetime
]) – Created from datedate_to (
Optional
[datetime
]) – Created to datefirst (
int
) – Number of items per pageskip (
int
) – Page number to retrieveorder_direction (
OrderDirection
) – Order of results, “asc” or “desc”
exception human_protocol_sdk.filter.FilterError
Bases: Exception
Raises when some error happens when building filter object.
class human_protocol_sdk.filter.PayoutFilter(escrow_address=None, recipient=None, date_from=None, date_to=None)
Bases: object
A class used to filter payout requests.
__init__(escrow_address=None, recipient=None, date_from=None, date_to=None)
Initializes a PayoutFilter instance.
Parameters:
escrow_address (
Optional
[str
]) – Escrow addressrecipient (
Optional
[str
]) – Recipient addressdate_from (
Optional
[datetime
]) – Created from datedate_to (
Optional
[datetime
]) – Created to date
class human_protocol_sdk.filter.StatisticsFilter(date_from=None, date_to=None, first=10, skip=0, order_direction=OrderDirection.ASC)
Bases: object
A class used to filter statistics requests.
__init__(date_from=None, date_to=None, first=10, skip=0, order_direction=OrderDirection.ASC)
Initializes a StatisticsFilter instance.
Parameters:
date_from (
Optional
[datetime
]) – Created from datedate_to (
Optional
[datetime
]) – Created to datefirst (
int
) – Number of items per pageskip (
int
) – Page number to retrieveorder_direction (
OrderDirection
) – Order of results, “asc” or “desc”
class human_protocol_sdk.filter.TransactionFilter(chain_id, from_address=None, to_address=None, start_date=None, end_date=None, start_block=None, end_block=None, first=10, skip=0, order_direction=OrderDirection.DESC)
Bases: object
A class used to filter transactions.
__init__(chain_id, from_address=None, to_address=None, start_date=None, end_date=None, start_block=None, end_block=None, first=10, skip=0, order_direction=OrderDirection.DESC)
Initializes a TransactionsFilter instance.
Parameters:
chain_id (
ChainId
) – Chain ID to filter transactions fromfrom_address (
Optional
[str
]) – Sender addressto_address (
Optional
[str
]) – Receiver addressstart_date (
Optional
[datetime
]) – Start date for filtering transactionsend_date (
Optional
[datetime
]) – End date for filtering transactionsstart_block (
Optional
[int
]) – Start block number for filtering transactionsend_block (
Optional
[int
]) – End block number for filtering transactionsfirst (
int
) – Number of items per pageskip (
int
) – Page number to retrieveorder – Order of results, “asc” or “desc”
Raises: ValueError – If start_date is after end_date
Last updated