Log in

Manage Assets against your reserves

Use the Brale API to mint and burn stablecoins or real world assets against reserves held by your institution.

Base enables businesses to deploy and automate on-chain supply of digital assets against off-chain reserves across multiple blockchains. Base is often helpful for stablecoin projects with existing banking relationships in their jurisdiction to easily manage on-chain operations with their team, or to expand their assets to additional blockchains without development effort.

This guide provides an example of programmatically managing on-chain supply of a stablecoin, backed by off-chain reserves.

1. Increase Supply

When reserves increase, mint assets to your platform or end-user wallets.

POST /deployments/:id/mints

  • You'll need to include a unique Idempotency-Key in the request header.
  • Include the ID of the specific chain deployment you'd like to mint on.
  • Include the amount you'd like to mint, with your currency type.
  • Include the wallet ID you'd like to mint, along with type address.
  • Include type of order.
curl --request POST \
  --url https://api.brale.xyz/deployments/{ID}/mints \
  --header 'Content-Type: application/vnd.api+json' \
  --header 'Idempotency-Key: ABC_123_XYZ' \
  --data '{
	"data": {
		"attributes": {
			"amount": {
				"currency": "USD",
				"value": "1"
			}
		},
		"relationships": {
			"destination": {
				"id": "2Xs0gvJN72Kk7UZgaYQl7FyUdLT",
				"type": "address"
			}
		},
		"type": "order"
	}
}'

2. Decrease Supply

When reserves decrease, burn assets on-chain. Assets are burned after depositing into a Brale custodial wallet.

POST /deployments/:id/redemptions

  • You'll need to include a unique Idempotency-Key in the request header.
  • Include the ID of the specific chain deployment you'd like to burn on.
  • Include the amount you'd like to burn, with your currency type.
  • Include type of order.
curl --request POST \
  --url https://api.brale.xyz/deployments/{ID}/redemptions \
  --header 'Content-Type: application/vnd.api+json' \
  --header 'Idempotency-Key: ABC_123_XYZ' \
  --data '{
	"data": {
		"attributes": {
			"amount": {
				"currency": "USD",
				"value": "1"
			}
		},
		"type": "order"
	}
}'

3. Swap Supply Cross-Chain

To manage liquidity of assets across multiple blockchains, Brale also makes it possible to submit swap requests utilizing the above primitives, where supply will be burned natively on the source chain, and minted on the destination chain.