Skip to main content
This guide is for partners that run mint and burn from their own backend, such as wallets, exchanges, and resolvers that rebalance between USDT or USDT0 on EVM networks and USDT on Bitcoin. The Mint supports two directions:
  • Lock and mint: lock USDT or USDT0 and mint the net amount as USDT on Bitcoin to an RGB wallet.
  • Burn and unlock: burn USDT on Bitcoin and unlock the net amount as USDT or USDT0 to the payout address committed in the burn.

Bridging lifecycle

Every transfer starts with an estimate. Then the two directions follow these steps:

Supported networks and routes

The bridge holds its mint and burn liquidity on Arbitrum One. A mint from Arbitrum calls the bridge contract directly. A mint from another supported source network first deposits into a Utexo entrypoint contract, which forwards the funds to the Arbitrum bridge before the RGB mint is executed. A burn is always released from the Arbitrum bridge: to Arbitrum directly, or to another supported network through USDT0 / LayerZero.
The network IDs above are part of the bridge API contract. Contract addresses, token IDs, and operational availability are deployment-specific; obtain those values from GET /networks and GET /networks/{networkId}/supported-tokens in the target environment.
Base URL: https://gateway.mint.utexo.com/api/v0Every endpoint in this guide requires authentication. Create an account, complete KYC or KYB, and generate an API key in your account. Contact the Utexo team for access to the test environment before launch.

Before you start

You need:
  • An API key. Every endpoint in this guide, including GET /networks, the estimate, and the capacity endpoint, requires the X-API-Key header (or a signed-in session cookie). A missing or invalid key returns 401. Generate the key yourself, from a signed-in session, with POST /users/me/api-key after your account has passed KYC or KYB. The raw key (apiKey) is returned only once, when it is created. GET on the same path returns only its creation time, and DELETE revokes it. Keep the key on your backend. Do not put it in a browser app or a wallet you do not control.
  • Verification for larger mints. An account that has not completed KYC or KYB can mint only up to a cumulative limit set by Utexo: the new gross deposit plus its completed and active mint deposits must stay within it. Above the limit, the estimate and POST /mint/op-id return 403 with code 9. Burns do not count against this limit.
  • An account on the source network with the supported USDT or USDT0 token and native currency for gas or fees. A direct Arbitrum mint also requires ETH. Ethereum, Polygon PoS, Plasma, and Tron use a Utexo entrypoint contract; see Deposit from another network.
  • An RGB wallet that supports the BFA asset schema. See RGB wallet requirements.
  • Bitcoin for wallet operations. The receiving wallet needs confirmed sats to create RGB-colorable UTXOs. A burn also needs an empty colorable UTXO and enough sats for its Bitcoin transaction fee.
All API and wallet amounts in this guide are integers in token base units. USDT and USDT0 have 6 decimals, so 1000000 is 1 USDT.

Find the network and token IDs

From the responses, take: Use the protocol network IDs listed above. Discover contract addresses, token IDs, asset IDs, and active route configuration from the environment you are integrating with.

Estimate the result

Call the estimate endpoint (API key required) before either a mint or a burn:
amount is always the gross input in base units:
  • for a mint, it is the amount deposited on the source network;
  • for a burn, it is the amount burned on Bitcoin.
Every successful estimate returns integer base-unit amounts as strings. A direct Arbitrum mint looks like this:
The amounts above are an example. Fees are set per route and change over time, so always read them from the estimate.
receiveAmount is what arrives: minted on RGB for a mint, delivered on the recipient network for a burn. It is net of the bridge commission and, on a LayerZero leg, of the fee the OFT keeps. The amounts relate as follows:
An amount below minAmount returns 400 with code 2 and details: {"amount": "...", "minAmount": "..."}. The fee schedule is deployment-specific; the numbers in this section are illustrative. The way the quote is calculated depends on whether Arbitrum or an entrypoint-based network is the mint source.

Direct mint estimate from Arbitrum

For Arbitrum One, the gross amount is deposited directly into the bridge contract. Quote a gross deposit of 1 USDT or USDT0 like this:
No senderAddress is required for the direct Arbitrum route. There is no oftFee on this route, so:
Use the same gross amount in POST /mint/op-id. Its depositAmount is the value approved and passed to fundsIn, while mintAmount is the quoted net RGB amount.

Mint estimate from an entrypoint-based network

Ethereum, Polygon PoS, Plasma, and Tron use a two-stage quote:
  1. The source entrypoint quotes how much of the gross deposit is guaranteed to arrive at the Arbitrum bridge.
  2. The bridge calculates its token commission on that guaranteed Arbitrum delivery and returns the final RGB receiveAmount.
The estimate must include senderAddress, because the entrypoint quote and generated deposit parameters depend on the source account. For example, quote a Polygon deposit:
Use the same pattern for the other entrypoint-based networks: Append ?senderAddress={sourceAccount} to each path. Discover the source network’s USDT token ID through its supported-tokens endpoint; do not assume it is identical in every environment. For an entrypoint-based network, oftFee is the part of the deposit that LayerZero does not deliver to Arbitrum, so:
The depositor also pays lzNativeFee in the source chain’s native currency; it is not deducted from amount. The minimum is checked on both the deposit and the amount LayerZero delivers. After POST /mint/op-id, use the returned entrypoint.depositParams, nativeFee, and other entrypoint fields to submit the source-chain deposit; do not construct those values from the estimate.

Estimate lifecycle and exact receive amounts

The endpoint is read-only: it does not reserve liquidity, prepare a mint, or move funds. Treat the result as a quote, not a reservation. Fees or upstream delivery quotes may change before you prepare or submit the operation; the response from POST /mint/op-id is authoritative for that prepared mint. To target an exact RGB receive amount, search for a gross input whose receiveAmount equals the target. Start with the target as the gross input, add the difference between the target and receiveAmount, and quote again until the endpoint returns the exact target. Integer rounding and a base fee mean that simply adding one percentage may not produce an exact result. To recheck the fees of a mint you already prepared and have not paid yet, add ?opId={opId} (with senderAddress if the mint has a stored depositor). The route, token, depositor, and exact gross amount must match the prepared mint, so its reservation is not counted twice against your verification limit. A mint that is closed or expired returns 409 with code 12: do not pay it.
Call the estimate before creating the RGB invoice so you can show and record the expected net amount. After POST /mint/op-id, verify that mintAmount is the amount the customer accepted before moving funds. If the invoice itself carries a fungible amount, it must equal mintAmount, not the gross EVM deposit.

RGB wallet requirements

Utexo’s USDT on Bitcoin uses the BFA (Burnable Fungible Asset) schema, which allows the asset to be burned for release on a supported EVM network. Use any RGB wallet that supports BFA and can:
  • create a blinded receive invoice for a mint;
  • refresh and settle incoming transfers;
  • burn a BFA amount with a 32-byte burn reason (the payout destination);
  • report spendable balances and unspent outputs before a burn;
  • export the raw consignment of the burn, which you submit to /unlock.
The Utexo SDKs provide these operations. Contact the Utexo team to confirm that your wallet stack is compatible with the deployed BFA schema. Set up the wallet as follows:
  • Create the wallet keys once, store them securely, and load the same keys and data directory after every restart. Do not run two processes against the same wallet data at the same time.
  • Configure an EVM RPC endpoint. The wallet needs it to validate the bridge history referenced by BFA consignments.
  • Fund the wallet with Bitcoin on the configured network. After the funding transaction confirms, create RGB-colorable UTXOs. This broadcasts a Bitcoin transaction.
  • Wait until the wallet reports usable allocation capacity before you create an invoice. Each pending blinded invoice reserves an allocation slot. Use a new invoice for every mint, and clean up only invoices that have definitely expired.

Lock and mint

1

Quote the gross deposit

Call the estimate endpoint with the source EVM network, RGB destination network, EVM token ID, and proposed gross deposit. Record receiveAmount as the amount the RGB wallet should receive.If the customer specifies the desired RGB amount instead, iterate estimates as described in Estimate the result to find an exact gross input.
2

Create a blinded RGB invoice

A bridge mint requires a blinded recipient. Do not use a witness invoice: a witness recipient requires a satoshi amount in the Bitcoin output, while the bridge mint does not carry one.Create a new blinded receive invoice in the RGB wallet:
  • leave the asset ID out of the invoice, and leave the assignment unspecified (the bridge binds the prepared mint amount);
  • set an expiry, for example 24 hours;
  • use the Utexo RGB proxy as the transport endpoint;
  • require 1 confirmation before the receive settles.
Persist the invoice and the wallet’s transfer reference with your operation state. For a bridge mint, the invoice normally has an unspecified assignment; the bridge binds the prepared mintAmount to that blinded recipient.An invoice may omit the asset ID and amount. If another client produces an invoice that includes an asset ID or fungible assignment, they must match the supported USDT asset and the prepared mintAmount.Use a new invoice for every mint. The Mint refuses an invoice it has already paid.
3

Prepare the mint

Send the blinded invoice and the gross source deposit from the estimate as amount:
Before moving funds, verify all of the following:
  • depositAmount equals the gross amount you intend to deposit;
  • mintAmount equals the amount in the blinded invoice and the amount the customer accepted;
  • settlementData is retained byte-for-byte for the contract call;
  • enough time remains in ttlSeconds for the deposit to be submitted.
The deposit must reach the bridge contract before the operation expires. If it expires, prepare a new operation and use a new invoice.
4

Lock USDT or USDT0

Approve the bridge contract to spend exactly depositAmount. If the token requires resetting an existing allowance, set it to 0 first. Then call fundsIn with the returned settlementData unchanged. destinationAddress is an empty string because the RGB recipient was supplied in the invoice.
Submit the exact prepared amount. A different amount will not match the prepared mint.The bridge takes the commission that applies when the deposit arrives. Right before you send the deposit, recheck the prepared mint with GET /mint-burn/estimate/...?opId={opId} (see Estimate lifecycle). If receiveAmount no longer equals mintAmount, do not deposit: prepare a new mint with a new invoice.
5

Track the mint

Poll the mint until it reaches completed or expired:
Signing starts only after the deposit is final on Arbitrum, so funds_in_confirmed can last for a while before bridge_signed.
6

Receive the USDT in the RGB wallet

Refresh the wallet until the incoming transfer settles. Then read the USDT balance.A pending (future) balance includes transfers known to the wallet. The spendable balance is what is available to burn or transfer now. Do not start a burn until the required amount is spendable.

Deposit from another network

From Ethereum, Polygon PoS, Plasma, or Tron, quote and prepare the mint with that network as sourceNetworkId. Include the depositor in the estimate’s senderAddress query parameter and in the /mint/op-id request’s sourceAddress, and include the source tokenId. amount remains the gross amount deposited on the source network. The response adds an entrypoint object; mintAmount is the net amount quoted to arrive as USDT on RGB after the upstream delivery and bridge commission. Instead of calling fundsIn directly:
  1. Approve entrypoint.contractAddress to spend depositParams.amountLD of the source token.
  2. Call deposit(depositParams) on the entrypoint contract with entrypoint.nativeFee as the transaction value.
p is entrypoint.depositParams. extraOptions and payload are returned without the 0x prefix. On Tron, make the equivalent calls with TronWeb. Then track the mint with GET /lock/{opId}/status.

Burn and unlock

A burn cannot be undone. Check the quote, minimum amount, release capacity, spendable RGB balance, and payout destination before calling the wallet. The payout destination is committed into the burn and cannot be changed by /unlock.Every burn commits a V1 burn destination, on every payout network, Arbitrum included: the burn reason is the hash of a record naming the payout network, its LayerZero endpoint and the recipient, and /unlock must carry that record. See Choose the burn destination.

Choose the burn destination

A BFA burn has one 32-byte field for the payout target, the burn reason (burnReason). It holds hash_v1(record) of a V1 burn destination record. The bridge releases a V1 burn with a direct fundsOut on Arbitrum (dstEid 0), or with lzFundsOut through USDT0 / LayerZero to another network. /unlock must carry the record. A V1 record has four fields: The hash is the EIP-712 hashStruct of the record:
The routes the Utexo web app uses: Confirm the route list for your environment with the Utexo team before you burn. Compute the hash, for example with viem:
Test your implementation against the published vectors before you burn. For example, destinationChainId 1, dstEid 30101 and recipient 0x2222222222222222222222222222222222222222 give 0x9274beba7130d3f8a4ef95c5c4c555616718050c688f8478e23f8131762a9537.
Store the burnDestination record with the burn. A V1 burn cannot be released without the exact record whose hash it commits.
1

Quote the burn

Quote the gross amount to burn by reversing the route:
Show the customer both the gross burn and receiveAmount. The recipient receives receiveAmount; totalTokenFee (the bridge commission plus, on a LayerZero release, oftFee) is deducted. Do not burn less than minAmount. The quote does not check current release liquidity, so perform the capacity check separately.
2

Check release capacity

Do not burn more than available. It is the available USDT or USDT0 liquidity in the bridge, less releases in progress, capped by the current outflow limit when one is set. Also do not burn less than the estimate’s minAmount (the Arbitrum bridge’s minFundsOutAmount). Capacity is a snapshot and is not reserved for you, so recheck it immediately before the burn.
3

Prepare the RGB wallet

Refresh the wallet and check two things:
  • the spendable BFA balance covers the burn amount;
  • there is an empty colorable UTXO (no RGB allocations, no pending blinded receive) with sats for the Bitcoin transaction, for example at least 1000 sats.
If no suitable UTXO is available, fund the wallet if necessary and create colorable UTXOs before you continue.
4

Burn in the RGB wallet

Use the V1 burnReason from Choose the burn destination, and keep its record. Then burn the gross RGB amount in the wallet, with the burn reason, a Bitcoin fee rate, and your confirmation policy. The wallet builds and signs the PSBT, writes the BFA consignment, and broadcasts the Bitcoin anchor transaction.
With rgb-lib, call Wallet::burn and then read the consignment that the burn wrote. BFA burns need an rgb-lib version with BFA support: the next branch, until it is included in a release. The wallet must be online with an EVM RPC endpoint for Arbitrum One (evm_rpc_urls in OnlineOptions, chain ID 42161). The same call is available in the rgb-lib language bindings.
Persist the burn transaction ID and the wallet’s transfer reference before you continue. If the call fails after submission and it is unclear whether a transaction was created, check the wallet’s transfer list before you retry. Never retry an ambiguous burn automatically.
5

Read and encode the burn consignment

Export the consignment that the burn created from the RGB wallet. Base64-encode the raw bytes.Send the result as the consignment field of /unlock. Do not encode the path or a hex representation of the file; /unlock expects standard base64 of the raw consignment bytes.Optionally, send the same body to POST /unlock/verify first. It runs the checks /unlock runs before it claims the burn (burn shape, bridged asset, payout destination, outflow capacity) and returns operationId, amount, recipient, assetId, and burnTxid. Nothing is claimed or sent, so it can be repeated. It does not check Bitcoin finality, the deposits behind earlier mints, or the reject list.
6

Submit the burn

maxFeeRate is optional. When supplied, it is a non-negative decimal string containing the maximum EVM gas price in wei that you accept.Add the record the burn commits to as burnDestination:
Submit right after the burn; you do not need to wait for Bitcoin confirmations. The signer enclaves require 6 confirmations of the burn before they sign, and the bridge waits for them itself. The amount and payout destination are read from the consignment and cannot be overridden by the request.
7

Confirm the release

A successful submission returns 200 with one of two statuses:
operationId is the keccak256 of the consignment. The transfer history lists the burn under it: SOURCE_IN while it waits for Bitcoin finality, SIGNING while the release is signed, DEST_OUT once it is out, and SETTLED once it is paid. A burn whose release does not go out within 24 hours (for example, because its Bitcoin transaction was replaced or dropped) shows as FAILED and can be unlocked again.Verify that recipient is the payee committed in the burn. The recipient receives the estimate’s receiveAmount.

Release to another network

To release to Ethereum, Polygon PoS, Plasma, or Tron, use that network as the destination in every burn request, and use the token ID of USDT on that network:
The burn must commit a V1 burn destination for that network (see Choose the burn destination). In POST /unlock, set destinationNetworkId to the destination network, send the burnDestination record, and set tokenId, which is required for these releases:
The bridge releases from Arbitrum with lzFundsOut and sends the funds through USDT0 / LayerZero, so evmTxHash is the Arbitrum transaction. A confirmed Arbitrum transaction means the send was submitted; delivery to the recipient happens later, in a separate transaction on the destination network. The estimate’s oftFee covers what the OFT keeps on delivery, and receiveAmount is what arrives. The bridge pays the LayerZero messaging fee (lzNativeFee).

Retries and errors

Errors have the shape {"error":"...","code":4,"details":{...}}. details is present only when the error has structured retry information. On POST /mint/op-id, a 400 may indicate that the deposit does not cover the commission, the invoice is malformed, the invoice uses a witness recipient, the invoice amount or asset does not match, or the route is invalid. A 409 indicating that the RGB invoice was already used means you must create a new blinded invoice. Sending the same request again for a prepared mint that is not paid yet resumes it; the retry never renews the original deadline. For unlock codes 6, 7, and 8, and for a confirming response, nothing was sent to the destination EVM network, and retrying the same request with the same consignment is safe. For transport errors or a 500 during an irreversible or externally submitted step, first reconcile the RGB wallet, bridge status, and EVM transaction state. Do not assume the operation failed merely because the response was lost.