Implementing a cryptocurrency order exchange system with the Blnk Ledger.
@ETH_Escrow
or @MATIC_Escrow
) until the order is matched or finalized:
@ETH_Escrow
(inflight).@MATIC_Escrow
(inflight).@ETH_Escrow
with Customer B’s inflight MATIC transaction in @MATIC_Escrow
, linking them under a shared . This step confirms compatibility and prepares the orders for settlement, keeping funds securely held in escrow until the final exchange.
@ETH_Escrow
matches Emily’s MATIC order (and linked by a root id: root_id_123
).@MATIC_Escrow
matches John’s ETH order (and linked by a root id: root_id_123
).@MATIC_Escrow
commits and settles to John’s MATIC balance. The settlement transactions are linked to matched orders with the root_id
.@ETH_Escrow
commits and settles to Emily’s ETH balance. The settlement transactions are linked to matched orders with the root_id
.http://localhost:5001
).YOUR_API_KEY
in the code examples). Required for authenticated requests.precision
parameter in all transaction calls accordingly and ensure amount calculations reflect this precision.inflight_expiry_date
to automatically roll back the inflight transaction if an order isn’t matched within a timeout period.