nqs_sdk.bindings.tx_generators.random_tx_generator module

class nqs_sdk.bindings.tx_generators.random_tx_generator.RandomTxGenerator[source]

Bases: TxGenerator, ABC

__init__()[source]
id()[source]
Return type:

str

abstract property protocol_id: str
abstractmethod get_transactions(start_block, end_block)[source]
Return type:

list[Transaction]

abstractmethod get_next_block(current_block)[source]
Return type:

Optional[int]

next(clock, state, metrics)[source]
Return type:

Tuple[List[TxRequest], Optional[int]]