Verification flow
Fetch blockchain data
TRXN queries the blockchain to find all transactions from the sender address to the recipient address within the expected date range.This returns transaction hashes, timestamps, and crypto amounts.The blockchain provider is selected through the
TransactionProviderFactory. The current provider is Bitquery.Get historical prices
For each transaction found, TRXN looks up the crypto-to-fiat exchange rate at the exact moment the transaction occurred.For example: “What was 0.002 BTC worth in USD on Jan 15 at 10:00 AM?”The price provider is selected through the
CurrencyQuoteProviderFactory. Current providers include CoinMarketCap and CoinAPI.Calculate fiat values
Each transaction’s crypto amount is multiplied by the historical price to get the fiat value at the time of payment.
Verify payment status
The system sums all transaction fiat values and compares the total to the invoice amount.This step determines:
- Total amount paid (in fiat)
- Whether the payment is complete or partial
- Remaining balance (if any)
Verification result
After verification completes, the result contains:Why historical prices matter
Cryptocurrency prices are volatile. A payment of 0.002 BTC could be worth:- $80 on Monday
- $100 on Tuesday
- $95 on Wednesday
Multiple transactions
Customers may pay an invoice across multiple transactions. TRXN sums all transactions to determine the total paid:| Transaction | Amount | Fiat value | Running total |
|---|---|---|---|
| Tx 1 (Jan 10) | 0.001 BTC | $50.00 | $50.00 |
| Tx 2 (Jan 15) | 0.001 BTC | $52.00 | $102.00 |
Each transaction’s fiat value is calculated independently using the exchange rate at its own timestamp. This means two transactions of the same crypto amount may have different fiat values.
Supported cryptocurrencies
Currently supported:- BTC (Bitcoin)
- ETH (Ethereum)
Verification diagram
Related pages
Slippage margin
Configure price fluctuation tolerance for cryptocurrency payments.
Crypto payments overview
End-to-end payment flow from product definition to transaction allocation.