DL Fabric Gateway™ User Guide— Section 9

This post is part of the ‘DL Fabric Gateway™ User Guide’ originally published as

This post continues our ongoing discussion regarding fetching of transaction details on DL Fabric Gateway™.

Fetching Transaction Details on DL Fabric Gateway™

Fetching transaction details post-invocation is the mechanism that the Fabric network provides so that users can reference permanent records of actions on the network.

IMPORTANT — In order to fetch transaction details, a transactionId will be required. This was created in the previous section.


Fetch transaction info on DL Fabric Gateway™ using the fab_getTransactionInfoByTransactionId API:


Step 1

Open a Command Line Interface (CLI) of your choice (Terminal, cmd, etc.)

Step 2

Install curl (if not already installed): Download links — Linux/Windows

Step 3

Copy and paste the following API into your CLI of choice, and tap “enter” on your keyboard

curl -X GET \
‘https://dlfabricnetwork.dltlabs.com/api/1.0/fab_getTransactionInfoByTransactionId?userName=your@email.com&transactionId=8bd4ec291e06a1016ab1e561cf6d6e04de604431e95d1af0cedc4da90900c4fd&channelName=yourchannel' \
-H ‘Authorization: AUTH_TOKEN_HERE’

You are required to pass in your auth token, your email, the transactionId, and the channelName but not the chaincodeName.


Image for post
Image for post

Notice that it corresponds to the sample input provided in Step 3 of the “Invoking Chaincode on DL Fabric Gateway™” section.

Image for post
Image for post

Written by

DLT Labs is a global leader in Distributed Ledger Technology and Enterprise Products. To know more, head over to: https://www.dltlabs.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store