Pocket Network · Arazzo Workflow

Pocket Network Shannon Transaction Lookup

Version 1.0.0

Find the latest block, then look up a supplied transaction hash on Shannon.

1 workflow 1 source API 1 provider
View Spec View on GitHub Web3BlockchainRPCDecentralized InfrastructurePocket NetworkGrovePATHShannonCosmosPOKTArazzoWorkflows

Provider

pocket-network

Workflows

shannon-transaction-lookup
Anchor on the latest height, then resolve a transaction by hash.
Reads the latest block to capture the current height, then looks up the supplied transaction hash on the Shannon chain.
2 steps inputs: hash outputs: latestHeight, txResponse
1
getLatestBlock
getLatestShannonBlock
Read the most recently committed Shannon block to anchor the lookup to the current chain height.
2
getTransaction
getShannonTransaction
Resolve the supplied transaction by its hash on the Shannon chain.

Source API Descriptions

Arazzo Workflow Specification

pocket-network-shannon-transaction-lookup-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Pocket Network Shannon Transaction Lookup
  summary: Find the latest block, then look up a supplied transaction hash on Shannon.
  description: >-
    Pairs chain context with a specific transaction. It reads the latest
    committed Shannon block to anchor the lookup to the current chain height,
    then resolves a supplied transaction by its hash from the Cosmos REST
    surface so a consumer sees the transaction alongside the height it is being
    read against. Each step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: shannonRpcApi
  url: ../openapi/pocket-network-shannon-rpc-api-openapi.yml
  type: openapi
workflows:
- workflowId: shannon-transaction-lookup
  summary: Anchor on the latest height, then resolve a transaction by hash.
  description: >-
    Reads the latest block to capture the current height, then looks up the
    supplied transaction hash on the Shannon chain.
  inputs:
    type: object
    required:
    - hash
    properties:
      hash:
        type: string
        description: Shannon transaction hash (hex, 64 chars).
  steps:
  - stepId: getLatestBlock
    description: >-
      Read the most recently committed Shannon block to anchor the lookup to the
      current chain height.
    operationId: getLatestShannonBlock
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestHeight: $response.body#/block/header/height
  - stepId: getTransaction
    description: >-
      Resolve the supplied transaction by its hash on the Shannon chain.
    operationId: getShannonTransaction
    parameters:
    - name: hash
      in: path
      value: $inputs.hash
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      txResponse: $response.body#/tx_response
  outputs:
    latestHeight: $steps.getLatestBlock.outputs.latestHeight
    txResponse: $steps.getTransaction.outputs.txResponse