For the complete documentation index, see llms.txt. This page is also available as Markdown.

Channels concept

A channel is a permanent deposit address assigned to one of your end users. Unlike an invoice, which is a one-off bill with a fixed amount and a 20-minute rate, a channel has no amount and no expiry: the end user can send any amount to it, as often as they like, and every transfer is credited to your account as a separate channel deposit.

What a channel is made of

A channel pairs a pay currency on one network, what the end user sends (for example USDT on the Tron network, trx:usdt), with a target currency, what the deposit is credited in. The two can be the same, a crypto-to-crypto channel such as USDT to USDT, or different, a crypto-to-fiat channel such as USDT to EUR. An optional local currency adds a display currency the deposit is also expressed in, for example a localAmount in BRL for an end user who holds a BRL balance on your platform. Listing channel currency pairs returns the combinations available to you.

The channel carries your reference, typically your own user ID. It must be unique among your channels, and every deposit on the channel inherits it, so a webhook or a listing entry can be matched to the user without a lookup. The deposit address is assigned at creation and returned in the create response, ready to show to the user.

How deposits are processed

Txn monitors the channel address continuously. Each transfer it detects becomes a channel deposit with its own status:

  • pending while Txn waits for the on-chain confirmations and, on a crypto-to-fiat channel, converts the funds;

  • on_hold if source-address screening flagged the transfer for review;

  • completed once the funds are credited to the channel's target account;

  • rejected if compliance declined the deposit or the on-chain transaction never confirmed.

See Channels deposit flow for the transitions. Only completed deposits move the account balance.

On a crypto-to-fiat channel there is no rate lock: the conversion is priced at the spot rate with your spread at the moment the deposit is confirmed, so the amount credited depends on the market at that time. Each deposit reports the crypto received (payAmount), the amount credited after fees (amount), the Txn fee and consolidation fee, the network fee, the rates applied, and the result of source-address screening. Reading channel deposit describes every field.

Enabling and disabling

A channel is enabled or disabled. Deposits to a disabled channel are not processed or credited until you enable it again with Updating channel. Use it to pause a user without taking away their address.

Keeping your platform in sync

Txn sends a channel webhook on every status change of a deposit, with the full deposit in the payload, including channelId and your reference. Credit the end user on completed, and treat rejected as final. For reconciliation, Listing channel deposits returns the deposits of one channel, and Listing transactions shows them as ChannelTransaction entries across all your accounts.

Last updated