async def get_transactions( self, start_version: int, limit: int, include_events: typing.Optional[bool] = None, ) -> typing.List[rpc.Transaction]: """get transactions Returns empty list if no transactions found See [JSON-RPC API Doc](https://github.com/diem/diem/blob/master/json-rpc/docs/method_get_transactions.md) """ params = [int(start_version), int(limit), bool(include_events)] return await self.execute("get_transactions", params, _parse_list(lambda: rpc.Transaction()))
async def get_account_transaction( self, account_address: typing.Union[diem_types.AccountAddress, str], sequence: int, include_events: typing.Optional[bool] = None, ) -> typing.Optional[rpc.Transaction]: """get on-chain account transaction by sequence number Returns None if transaction is not found See [JSON-RPC API Doc](https://github.com/diem/diem/blob/master/json-rpc/docs/method_get_account_transaction.md) """ address = utils.account_address_hex(account_address) params = [address, int(sequence), bool(include_events)] return await self.execute("get_account_transaction", params, _parse_obj(lambda: rpc.Transaction()))
async def get_account_transactions( self, account_address: typing.Union[diem_types.AccountAddress, str], sequence: int, limit: int, include_events: typing.Optional[bool] = None, ) -> typing.List[rpc.Transaction]: """get on-chain account transactions by start sequence number and limit size Returns empty list if no transactions found See [JSON-RPC API Doc](https://github.com/diem/diem/blob/master/json-rpc/docs/method_get_account_transactions.md) """ address = utils.account_address_hex(account_address) params = [address, int(sequence), int(limit), bool(include_events)] return await self.execute("get_account_transactions", params, _parse_list(lambda: rpc.Transaction()))