Skip to content

list_transactions

list_transactions(
    address: ChainAddress,
    network: QueryNetwork,
    *,
    config_overrides: Optional[ManagedBlockchainQueryClientConfig] = None,
    from_blockchain_instant: Optional[BlockchainInstant] = None,
    to_blockchain_instant: Optional[BlockchainInstant] = None,
    sort: Optional[ListTransactionsSort] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[int] = None,
    confirmation_status_filter: Optional[ConfirmationStatusFilter] = None,
) -> ListTransactionsOutput

Lists all the transaction events for a transaction.

Parameters:

  • address (ChainAddress) –

    The address (either a contract or wallet), whose transactions are being requested.

  • network (QueryNetwork) –

    The blockchain network where the transactions occurred.

  • sort (Optional[ListTransactionsSort], default: None ) –

    The order by which the results will be sorted.

  • next_token (Optional[NextToken], default: None ) –

    The pagination token that indicates the next set of results to retrieve.

  • max_results (Optional[int], default: None ) –

    The maximum number of transactions to list.

    Default: 100

    Even if additional results can be retrieved, the request can return less results than maxResults or an empty array of results.

    To retrieve the next set of results, make another request with the returned nextToken value. The value of nextToken is null when there are no more results to return

  • confirmation_status_filter (Optional[ConfirmationStatusFilter], default: None ) –

    This filter is used to include transactions in the response that haven't reached finality . Transactions that have reached finality are always part of the response.

Raises:

  • AccessDeniedException –

    The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException –

    The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException –

    The service quota has been exceeded for this resource.

  • ThrottlingException –

    The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException –

    The resource passed is invalid.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_managedblockchain_query/_services/managed_blockchain_query.py
def list_transactions(
    self,
    address: "capo_managedblockchain_query.types.chain_address.ChainAddress",
    network: "capo_managedblockchain_query.types.query_network.QueryNetwork",
    *,
    config_overrides: Optional[ManagedBlockchainQueryClientConfig] = None,
    from_blockchain_instant: Optional[
        "capo_managedblockchain_query.types.blockchain_instant.BlockchainInstant"
    ] = None,
    to_blockchain_instant: Optional[
        "capo_managedblockchain_query.types.blockchain_instant.BlockchainInstant"
    ] = None,
    sort: Optional[
        "capo_managedblockchain_query.types.list_transactions_sort.ListTransactionsSort"
    ] = None,
    next_token: Optional[
        "capo_managedblockchain_query.types.next_token.NextToken"
    ] = None,
    max_results: Optional[int] = None,
    confirmation_status_filter: Optional[
        "capo_managedblockchain_query.types.confirmation_status_filter.ConfirmationStatusFilter"
    ] = None,
) -> "capo_managedblockchain_query.types.list_transactions_output.ListTransactionsOutput":
    """<p>Lists all the transaction events for a transaction.</p>

    Args:
        address: <p>The address (either a contract or wallet), whose transactions are being requested.</p>
        network: <p>The blockchain network where the transactions occurred.</p>
        sort: <p>The order by which the results will be sorted. </p>
        next_token: <p>The pagination token that indicates the next set of results to retrieve.</p>
        max_results: <p>The maximum number of transactions to list.</p> <p>Default: <code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>
        confirmation_status_filter: <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>

    Raises:
        capo_managedblockchain_query.errors.access_denied_exception.AccessDeniedException: <p>The Amazon Web Services account doesn’t have access to this resource. </p>
        capo_managedblockchain_query.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an internal error in the service.</p>
        capo_managedblockchain_query.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The service quota has been exceeded for this resource.</p>
        capo_managedblockchain_query.errors.throttling_exception.ThrottlingException: <p>The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.</p>
        capo_managedblockchain_query.errors.validation_exception.ValidationException: <p>The resource passed is invalid.</p>
        capo_managedblockchain_query.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_managedblockchain_query.types.list_transactions_input.ListTransactionsInput]",
    ) -> OperationResponse[
        "capo_managedblockchain_query.types.list_transactions_output.ListTransactionsOutput"
    ]:
        import capo_managedblockchain_query._operations.tieton_chain_query_service.list_transactions

        output, http_response = (
            capo_managedblockchain_query._operations.tieton_chain_query_service.list_transactions.list_transactions(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListTransactions")
    )
    input_: capo_managedblockchain_query.types.list_transactions_input.ListTransactionsInput = {
        "address": address,
        "network": network,
    }
    if from_blockchain_instant is not None:
        input_["from_blockchain_instant"] = from_blockchain_instant
    if to_blockchain_instant is not None:
        input_["to_blockchain_instant"] = to_blockchain_instant
    if sort is not None:
        input_["sort"] = sort
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if confirmation_status_filter is not None:
        input_["confirmation_status_filter"] = confirmation_status_filter

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output