Transaction webhooks

Subscribe to events using webhooks

An event is a notification about any update in a process. In Liminal, events occur when there is an update on the transactions. These real-time updates are notified to you, as a Virtual Asset Service Provider (VASP). This ensures that you are always informed about the confirmation and completion of your customers’ transactions.

The following flowchart illustrates the flow of the webhook and the actions you can take based on them.

The above flowchart is described as in the following steps:

  1. Your customer (User) initiates a transaction on a blockchain.
  2. Liminal receives the block confirmation on the transaction.
  3. Liminal sends a webhook request to your webhook URL.
  4. You call the Retrieve a transaction status API to check the status of the transaction.
  5. You validate the API response with the webhook request data.
  6. If confirmed, you credit your customer’s account.

Note: These events occur many times and buzz your systems. Even when the same event occurs multiple times, the data in the event remains the same. You can validate the payload received in the webhook request using the Retrieve a transaction status API based on the transaction hash to avoid duplicate entries in the system.

Transaction events

In Liminal, webhooks are designed to provide real-time updates about two primary types of events – Send and Receive.

Event identificationDescription
SendWhen a transaction is confirmed on the blockchain after a specific number of block confirmation occur for a protocol, for outgoing transactions from Vaults, a 'Send' event is triggered. The associated request notifies your webhook upon the confirmation of the transaction, providing all the necessary details such as transaction ID, the amount sent, the sender's and receiver's wallet details, etc. For more details, see Send webhook requests.
ReceiveWhen a transaction is completed and the funds are received in the designated account, a 'Receive' event occurs. This event confirms the successful completion of the transaction. The associated request notifies your webhook with the confirmation of the transaction completion, along with the relevant transaction details. Please note that this event only gets triggered after sufficient confirmations are received on blockchain as shown in the block confirmation table. For more details, see Receive webhook requests.

Block confirmation

Block confirmations play an important role in the security and validity of transactions on the blockchain. In the context of deposits and withdrawals in Liminal, a specific number of block confirmations are required to ensure the validity and confirmation of the transactions. This additional confirmation provides an extra layer of security, reducing the risk of fraudulent transactions.

The following table provides information about the blockchain based block confirmation thresholds for testing and production environments:

ChainBlock confirmations (testing environment)Block confirmations (production environment)
Ethereum541
Binance Smart ChainNA21
Polygon20151
Energy Web ChainNA21
ArbitrumNA21
AvalancheNA21
OptimismNA21
FantomNA21
KlaytnNA21
FlareNA21
ZKEVMNA9
TelosNA21
Bahamut22
Playa3ull3131
Bitcoin12
Doge2011
Bitcoin Cash110
BNB Beacon ChainNA60
Litecoin15
Bitcoin SVNA11
Tron1031
Solana1031
Cardano1011
Near3131
Algorand3131
EthereumPowNA21
GnosisNA21
Xinfin1021
Tezos30NA
Base ETHNA50

Ripple, Stellar, and Cosmos networks don't rely on traditional block confirmations. Instead, they use their own consensus protocols where balances and transactions are synced at set intervals.