Test Crypto Transactions

While in Bead’s test environment, mainnet (real) crypto tokens must be used. For example, to test a USDC payment, you must use real USDC tokens on a supported network such as Base or Solana. For Bitcoin and Bitcoin Lightning, your Sandbox may use mainnet or a dedicated test environment depending on how your project is configured.

Please use the following sections for guidance on acquiring tokens for test payments, including fee tokens to cover blockchain or Lightning network fees, and for running an end to end test payment through the hosted payment page.

For background on how wallets, networks, and fees work, see:

Install a Crypto Wallet App

  1. Download a crypto wallet app. For example:

    • Phantom on Android or iOS for USDC on Solana and Base

    • Base app (formerly Coinbase Wallet), MetaMask, or Trust Wallet for USDC on Base and other EVM networks

    • A Bitcoin or Lightning capable wallet such as Wallet of Satoshi, Phoenix, or Muun for Bitcoin and Lightning testing

    • You may also set up a browser extension, for example:

      • Phantom from the Chrome Web Store

      • MetaMask or Base browser extensions for EVM networks

  2. Set up your wallet app/account

    • Create a secure password

    • Record your seed phrase

Purchase Tokens

Many wallets, including Phantom, Base app, and MetaMask, offer the ability to purchase assets directly within the app using a card or other payment method. This is often the fastest and easiest method, but it may carry convenience fees added to the purchase price by on ramp partners.

You can also acquire tokens on an exchange and then withdraw them to your self custody wallet. Some wallets support linking an exchange account to simplify this process, but you are still performing an exchange withdrawal under the hood.

Purchase Tokens in the Phantom Mobile App (USDC on Base or Solana)

The following example uses Phantom, focusing on USDC on Base. The same pattern applies to USDC on Solana, with the network set to Solana.

  1. Select the "Buy" button from the main app screen

  2. Search for and select your token

    • For USDC on Base, be sure to search for USDC in the search field and select the token with the following icon (outlined in red):

  3. Enter your desired amount of tokens for purchase

    • USDC has a value of 1:1 with the U.S. Dollar (i.e. $20 gets you ~20 USDC)

    • Note that the minimum transaction size for USDC is $1.00

    • Be sure to purchase some extra tokens that you will need to convert to the native network token (ETH in the case of Base) to cover network fees. (Covered in the next section)

  4. Select the payment method/provider

    • Wallet apps support multiple payment partners, some with better rates and/or convenience

  5. Select "Continue" to proceed to the payment provider quote

    • Some partners require that you create an account before making a purchase (e.g. Coinbase)

    • Google SSO is often offered a means for expedient account creation (e.g. Topper)

  6. Carefully review the network, fees, and exchange rate (see below for an example from Topper)

  7. Review and complete your payment

    • Note that the payment method selected at this stage may carry an additional fee (e.g. Debit card, Google Pay)

  8. Wait for your tokens to arrive

    • Return to the main screen of your wallet app

    • Allow a short amount of time for your tokens to appear

Always confirm that the token and network shown in your wallet match the network you intend to test (for example USDC on Base or USDC on Solana) before purchasing.

Acquire Fee Tokens

In order to create transactions, fees must be included and are typically paid with the network’s native token. For example:

  • On the Base network, ETH is required to pay fees.

  • On the Solana network, SOL is required to pay fees.

  • On Bitcoin, fees are paid in BTC as part of each transaction.

  • On Lightning, fees are paid in BTC through Lightning channels and are handled by the Lightning wallet and routing nodes.

Transaction fees can vary based on the network and other factors such as network congestion and the settings chosen in the wallet.

Transactions on the Base network are typically very low cost, often less than a few cents USD.

Transactions on the Solana network are also typically very low cost, often in the cent or sub cent range.

There are two common methods for acquiring fee tokens in the same wallet where your USDC or BTC reside:

  1. Convert (swap) a portion of your existing tokens into the required fee token.

Converting is often the lower cost option to acquire fee tokens compared with buying small amounts directly, because many providers add higher fixed fees to small purchases.

Convert Tokens in the Phantom Mobile App (USDC to ETH)

The following example assumes you already have USDC in Phantom.

  1. From the home screen, select your existing token from the list of tokens (for example USD Coin).

  2. Select the “Swap” or “Sell” button, depending on the Phantom version and context.

  3. Carefully confirm the conversion parameters:

    • Enter the amount you wish to convert (for example, the equivalent of 1.00 USD).

    • Select the token you wish to receive:

      • ETH on Base when testing USDC on Base.

      • SOL on Solana when testing USDC on Solana.

    • Note the conversion fee at the bottom of this screen

  4. Confirm the conversion to execute the swap.

  5. Wait for your tokens to arrive

    • Return to the main screen of your wallet app

    • Allow a short amount of time for your tokens to appear

Some wallet apps or extensions have a "Swap" button, which should be used to initiate a token conversion, if available.

Complete a Test Payment

The flow below focuses on USDC through the hosted payment page. The same pattern applies to other crypto tenders such as Bitcoin on chain and Bitcoin Lightning, with differences only in asset selection and how the wallet interprets the QR code.

  1. Create a payment of at least $1.00 via your test application/API

  2. From the Bead hosted payment page, select the "USD Coin" tender type

  3. Open your wallet app and select your token (USDC)

  4. Select "Send" and click the Scan/QR button (typically in the top-right corner)

  5. Scan the QR code on the test payment page (Alternatively, copy/paste the address from the QR code)

  6. Enter the payment amount as displayed on your payment page (e.g. 1.00)

  7. Select "Next" to confirm transaction details, such as recipient address and fee amount

  8. Select Send and wait for your payment to complete

Next steps and troubleshooting

If you run into issues while testing crypto payments, use the following pages:

Last updated