Introducing Stablecoin Issuance API
Programmatically creating stablecoins based on other transfers, states, or needs with third-party systems is something we've always dreamed about. It's now very simple using the Brale Issuance API. Here is the code to mint a stablecoin in about 15 seconds.
POST https://api.brale.xyz/deployments/2CoiPeFVmUCiLcsEVo7YfH9CccI/mints
{
"data": {
"attributes": {
"amount": {
"currency": "USD",
"value": "1"
}
},
"relationships": {
"destination": {
"id": "2Xs0sXdEDHTnA1Ev1BqsEyUT3Kk",
"type": "address"
}
},
"type": "order"
}
}
Redemptions back to USD or USDC are also supported in the API. To redeem, here is an example of redemption to USD using the Redemptions endpoint:
POST https://api.brale.xyz/deployments/2CoiPeFVmUCiLcsEVo7YfH9CccI/redemptions
{
"data": {
"attributes": {
"amount": {
"currency": "USD",
"value": "1"
}
},
"relationships": {
"payment-destination": {
"id": "2Y8ruJbPZ6wiFmuJGNPYt75Un2w", //The ID of the financial institution to receive a wire.
"type": "financial-institution"
}
},
"type": "order"
}
}
Mints and redemptions through the Issuance API are available on all supported blockchains, including Ethereum, Polygon, Avalanche, Celo, Base, Optimism, Stellar, and Solana. Each blockchain has unique deployment IDs that designate the chain and the corresponding stablecoin that you'll be interacting with.
Chain | Stablecoin | ID | |
---|---|---|---|
SBC | 2DGiYExmo31IMyFewRuB1rMgiPp | ||
USDGLO | 2RQzVYXTpyYCw9aRPgUflADFNcn | ||
SBC | 2G8Em8ZfZYA5a5Qg2IkqM7LjiPJ | ||
USDGLO | 2RQzfsxVGEJGvdN3NmF12xrBolc | ||
SBC | 2Wa3LQY2s13QrhpN5aMfNH0C8R9 | ||
SBC | 2U4rCt6F98DMLXbGgiDBR8mB2YR | ||
SBC | 2UOlODcZFFlHweO78LyRzPIT3G9 | ||
SBC | 2VcUu9c3HQ2rImn29oi6BwR8AGg | ||
SBC | 2CoiPjYT9E6yh1AewC0JalWIeNF | ||
SBC | 2Skb9oyeDBV2CVjYrUVNtqgs3OD | ||
USDGLO | 2Tf2i4hhuoUqtH7i18W0SyWBVY4 |
To generate an API key and begin testing, you can log in to your account and generate a testnet or mainnet key to begin testing the API.
We recognize that programmatic minting and burning of stablecoins is a key component of a scalable stablecoin program and we're grateful for the initial feedback that helped bring this to market. The API is in Beta and will continue to be updated as we gather additional feedback.
Follow the API docs to start testing
Discuss on
Contributors
- Jared DellittCTO