Stable to fiat

Send your first payout with BlindPay.

Get your API Key

Before you start, you need to:

  1. Create an account on BlindPay
  2. Create a development instance
  3. Create your API key
  4. Mint USDB on Base Sepolia Testnet

Accept Terms of Service

For testing purposes you can accept the terms of service by yourself, for production purposes you should make your customer that is being created as a receiver to accept the terms.

Remember: replace YOUR_SECRET_TOKEN with your API key and in_000000000000 with your instance ID.

Bash
cURL

After you get the url, please open it in your browser, accept the terms and get the tos_id following the image below. This tos_id is necessary for creating receivers.

https://pub-4fabf5dd55154f19a0384b16f2b816d9.r2.dev/blindpay_tos_acceptance-min.jpg

Create a Receiver

Run the code below in your terminal to create a new receiver.

All receivers on development instances will be automatically approved by our KYC.

Bash
cURL

Add a Bank Account

In this example we're going to add an existing ACH bank account from the US.

This account should be a valid one, so please replace beneficiary, routing_number and account_number with your own information.

Remember: replace YOUR_SECRET_TOKEN with your API key, in_000000000000 with your instance ID and re_000000000000 with your receiver ID which you created previously.

Bash
cURL

Create a Payout on Base Sepolia Testnet

In this step we're going to use a default express.js server to create a payout on Base Sepolia Testnet.

Before start, please ensure you have Node.js installed.

Now create a folder called blindpay-api-example. Inside the folder, please run the following command:

Bash

And now install the dependencies:

Bash

Now create a file called index.js inside it, paste the code below and replace the values with your own.

Remember: replace walletPrivateKey with the private key from the wallet you minted the USDB on the first step.

JavaScript
index.js

Now run you can run the code using the following command:

Bash

You can now access the application at http://localhost:3000 to see the result.