Conversions

Payins and Payouts move funds into and out of a Mural Account. Conversions move funds within one. A Conversion transfers value from one asset to another asset in the same Account, such as from a USD balance to USDC, or from USDC back to USD. No funds leave the Account.

You manage Conversions with the Conversions API, and Mural reports every status change through its own webhook event.


A Conversion moves funds between two assets in the same Account, such as a USD fiat balance and a USDC stablecoin balance.

How a Conversion works

A Conversion names the Account, the asset to debit, the asset to credit and an amount. You can set either the source amount or the expected destination amount.

A Conversion runs in two steps:

  1. Create. Create a Conversion to get a quote. Mural returns the Conversion in the created status with its quotedSettlementDetails: the amount credited, the fees and the exchange rate. No funds move yet.
  2. Execute. Execute the Conversion to move the funds. This request requires your Transfer API key. The Conversion moves to pending, then to completed when the destination asset is credited.

If you don't want to go ahead, cancel the Conversion while it is still created.

Exchange rate tolerance

The quote can change between the time you create a Conversion and the time you execute it. The exchange rate tolerance on the Conversion decides what happens then:

typeWhat happens at execution
strictThe request fails if the quoted exchange rate, fees included, has changed.
flexibleThe Conversion proceeds at the current rate. Its actualSettlementDetails may differ from its quotedSettlementDetails.

Once a Conversion is executed, its settlement is fixed and does not change while funds move.

Statuses

StatusMeaning
createdThe Conversion is quoted and waiting to be executed. No funds have moved.
pendingThe Conversion was executed and funds are moving.
completedThe funds were credited to the destination asset.
canceledThe Conversion was canceled before it was executed. No funds moved.
refundInProgressThe Conversion could not complete, and Mural is returning the funds to the source asset.
refundedThe funds were returned to the source asset.

completed, canceled and refunded are terminal statuses.

To list an Account's Conversions, use Search Conversions. To read one, use Get a Conversion.

Webhooks

Conversions have their own webhook category, CONVERSION. Mural sends a conversion_status_changed event when a Conversion leaves the created status and on every status change after that. No event is sent when a Conversion is created. See Event Types for the payload, and Webhooks to subscribe to events.


Did this page help you?