10 min read
|
Published
|
Updated

Blockchain Supply Chain: Use Cases and Limits

A blockchain supply chain records shipment events and payments on a shared ledger. What to record, a payment example, and limits: input data, privacy, adoption.

Chapters
C
Chaingateway Team
Blockchain Experts

Reviewed by Maurice Sobiera

A blockchain supply chain system records shipment events, document fingerprints and payments on a ledger that all participants can read and none can change unnoticed. It replaces separate databases and document copies with one shared record. It proves what was recorded and when. It does not prove that the recorded event happened in the physical world.

What problem does a shared ledger solve in a supply chain?

It gives suppliers, carriers, customs and buyers one record they all trust, instead of each party keeping its own copy. Today every party runs its own system and exchanges documents such as invoices and bills of lading. Each receiver has to check that a document was not altered, and disputes start when two systems disagree.

NIST describes blockchains as tamper-evident and tamper-resistant digital ledgers. The same report uses a supply chain as its example: a transaction can change an attribute of a digital asset, such as the location of a shipment. Each party can verify entries itself, so nobody needs a central intermediary to arbitrate which version of a record is correct.

What do you record on the blockchain?

Record small facts and fingerprints, not documents. Blockchain storage is expensive and public chains are readable by anyone, so large or confidential data stays in your own systems. Typical entries are:

  • Shipment events: picked up, loaded, customs cleared, delivered, each with a timestamp
  • A hash of a document, such as an invoice or certificate, so anyone can later check that a file matches
  • Ownership changes of a batch or a pallet
  • Payments and escrow releases

A data model for events already exists outside blockchains. The GS1 EPCIS standard describes supply chain events along five dimensions: what, when, where, why and how. If you design your own event format, use it as a starting point instead of inventing field names.

How does a payment between supplier and buyer work?

The buyer pays a stablecoin to an address that belongs to the invoice. Your system watches that address and releases the goods when the payment arrives. With Chaingateway you register one webhook per invoice address and put the invoice number in reference:

Terminal window
curl -X POST https://app.chaingateway.io/api/v2/tron/webhooks \
-H "Authorization: Bearer $CHAINGATEWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": "TWrTTVizHkF3LxTiWE9vCnhWC7CBpNXe22",
"url": "https://erp.example.com/hooks/payment",
"type": "TRC20",
"reference": "INV-2026-0417"
}'

When a TRC20 transfer reaches the address, your server receives a notification with the transaction ID, sender, recipient, contract address and block number. It also carries the webhook ID, which maps it back to the invoice you registered it for. A failed notification is not retried automatically: it shows up in the list of failed notifications and can be re-sent on request. For a hold-until-delivery model, a smart contract can hold the funds in escrow and release them when an authorised party confirms delivery. Chaingateway does not deploy contracts. It sends and watches transactions.

What are the limits of blockchain in supply chains?

The ledger is only as accurate as its input. NIST calls this the oracle problem: a blockchain can record sensor and human input, but it cannot tell whether the input reflects real events. A faulty sensor or a false entry is stored faithfully. A scanned pallet and an entry saying “delivered” are two different facts.

Three more limits matter in practice:

  1. Immutability is not absolute. NIST notes that recent blocks can be replaced and that transactions are only protected once included in a published block, so wait for confirmations before you act on a payment.
  2. Privacy. On a public chain every entry is visible. Business partners often do not want competitors to see volumes or prices.
  3. Adoption. A shared ledger only helps if the parties actually use it. Maersk and IBM announced on 29 November 2022 that they would discontinue TradeLens, a blockchain-enabled shipping platform. Their statement says the full industry collaboration it needed had not been achieved.

Should you use a public or a private blockchain?

Use a public chain when partners do not know each other and the data is not sensitive, such as payments and document hashes. Use a permissioned network when participants must be identified and data must stay confidential. The Hyperledger Fabric documentation lists these enterprise needs: identifiable participants, permissioned access and private transactions.

Public chainPermissioned network
ParticipantsAnyoneKnown, admitted members
Data visibilityPublicRestricted to members or channels
Running costTransaction feesOwn servers and operators
Typical usePayments, hashesShared business data between known partners

Before a pilot, settle a few questions with your partners:

  1. Which events are written to the ledger, and who is allowed to write each one?
  2. Which data stays off-chain, and how is it linked to the on-chain hash?
  3. Who pays transaction fees, and in which currency or stablecoin?
  4. How many confirmations count as final for a payment?

A common split is to keep business data in a permissioned system and to settle payments on a public chain. A blockchain API such as Chaingateway covers the public-chain side: sending payments, watching addresses and reading transactions without running your own nodes. Start the free trial to try it on testnet.

How we write these articles

Ready to build this yourself? Get your API key — 7-day trial, no card required — or see the Blockchain API for the full endpoint reference.

C
Chaingateway Team
Blockchain Experts

The Chaingateway team is dedicated to simplifying blockchain integration for developers worldwide.