> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockradar.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Master Wallet Withdraw

> This endpoint allows you to initiate a gateway withdrawal.

### Body Parameters

| Key | **Required** | Type | Description |
| --- | --- | --- | --- |
| amount | true | string | The amount to be deposited. |
| address | true | string | The receipient address. |
| blockchain | true | string | The blockchain network. |
| reference | false | string | This would be the transaction reference |
| metadata | false | object | This would be atteched to the transaction payload |



## OpenAPI

````yaml post /v1/gateway/withdraw
openapi: 3.0.3
info:
  title: Blockradar Documentation
  description: >-
    The OpenAPI specification of the Blockradar API that enables fintechs and
    developers to seamlessly integrate stablecoin deposits and payments into
    their products.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.blockradar.co
security:
  - apiKey: []
tags:
  - name: Rewards
    description: >-
      Non-custodial yield (Earn) on stablecoins via regulated (Fija) and DeFi
      (Aave) strategies. Deposit, withdraw, preview fees, and read positions and
      earnings at the business, wallet, and sub-address level. Amounts are
      returned net of the platform fee, which applies only to interest earned.
  - name: Wallet
    description: >-
      Wallet Management System


      Comprehensive wallet management API for multi-blockchain operations. This
      system handles wallet creation, configuration, balance monitoring, and
      integration with various blockchain networks.


      Core Functionality:


      - Multi-blockchain wallet creation and management

      - Balance monitoring and asset tracking

      - Auto-settlement rule configuration

      - Gateway wallet integration

      - Address generation and management

      - Transaction monitoring and processing
  - name: Addresses
    description: >-
      Address Management System


      Comprehensive blockchain address management API for operations. This
      system handles address creation, validation, monitoring, and management
      across multiple blockchain networks.


      Core Functionality:


      - Multi-blockchain address generation

      - Address validation and verification

      - Balance monitoring and tracking

      - Transaction history management

      - Address labeling and organization

      - Integration with wallet systems

      - Real-time address monitoring
  - name: Asset
  - name: Transactions
  - name: Withdraw
    description: >-
      The Withdraw feature allows you to programmatically withdraw stablecoins
      from your master wallet with ease
  - name: Withdraw Fiat
  - name: Signing
    description: >-
      Typed data signing service for secure transaction authorization. Supports
      all EIP-712 standards including EIP-3009 (TransferWithAuthorization) and
      EIP-2612 (Permit).
  - name: Swap
    description: >-
      The Swap feature enables users to exchange one stabelcoin asset for
      another across different blockchains. This feature provides a seamless way
      to convert between different stablecoins while maintaining security and
      compliance standards.
  - name: Liquidity Pool
  - name: Virtual Accounts
    description: >-
      Virtual Accounts API provides endpoints for managing virtual bank accounts
      linked to master wallets or child addresses. This API enables businesses
      to:


      - Create virtual accounts for customers to receive payments

      - Retrieve virtual account details

      - Activate/deactivate virtual accounts


      **Virtual Account Types:**


      Virtual accounts support different types with varying behaviors:


      1. **AUTO_FUNDING** (Default):

          - Automatically mints stablecoin when fiat payments are received

          - Transfers the stablecoin to the linked wallet/address immediately

          - Best for real-time payment processing


      **How It Works - Auto-Funding Flow (AUTO_FUNDING type only):**


      When a customer sends fiat currency to a virtual account with type
      AUTO_FUNDING:


      1. **Payment Receipt**: The payment is received in the virtual account

      2. **Automatic Minting**: The system automatically mints the stablecoin
      equivalent

      3. **Blockchain Transfer**: The minted stablecoin is transferred to the
      virtual account's linked wallet or address


      **Note**: The auto-funding flow only applies to virtual accounts with type
      `AUTO_FUNDING`.

      Other types have different processing behaviors.


      ## Prerequisites


      Before creating virtual accounts, ensure:


      - **Compliance requirements must be completed** (see [Compliance
      Requirements](http://localhost:3000/essentials/virtual-accounts#compliance-requirements)
      section below)

      - **Virtual accounts feature must be enabled** for your business (reach
      out to [support@blockradar.co](https://mailto:support@blockradar.co) or
      use live chat on the dashboard to enable the feature after compliance
      approval)

      - **Only available on MAINNET environment** (not available on testnet)

      - **Master Wallet must support stablecoin asset** - Your account plan must
      include stablecoin access (upgrade from Dashboard → Settings →
      Subscription if needed)


      **Supported Currency:**


      - Fiat: NGN (Nigerian Naira)

      - Stablecoin: cNGN - minted automatically on blockchain (for AUTO_FUNDING
      type)
  - name: Auto Settlements
    description: >-
      Creates a new auto settlement rule for a wallet. Auto settlement
      automatically transfers/swap assets based on configured rules when certain
      conditions are met.


      Rules can be configured for:


      - Source blockchain and assets

      - Destination blockchain and asset

      - Amount ranges (min/max)

      - Slippage tolerance

      - Gateway vs non-gateway wallets


      Gateway rules are required for testnet wallets and must have matching
      source/destination assets.
  - name: Smart Contract
    description: >-
      This API provides endpoints for interacting with smart contracts on the
      blockchain. It allows for reading contract data, executing contract
      functions, and estimating network fees.
  - name: Gateway
    description: >-
      The Gateway feature enables you to programmatically deposit USDC into a
      unified, chain-abstracted balance and instantly mint USDC on any supported
      blockchain, streamlining crosschain transfers and eliminating manual
      bridging steps and rebalancing complexities.
  - name: Payment Links
    description: >-
      The Payment Pages API provides a quick and secure way to collect payment
      for servcies.
  - name: Beneficiaries
    description: >-
      This API allows you to create beneficiaries with automatic settlements to
      your external wallets on a periodic basis.


      Example frequencies: INSTANT, DAILY, WEEKLY, MONTHLY, YEARLY
  - name: AML
    description: >-
      The AML (Anti Money Laundering) API provides a quick way for you to check
      if an address is blacklisted or sanctioned
  - name: Asset Recovery
    description: >-
      Enables the recovery (salvage) of both native blockchain assets and tokens
      from a specified sender address to a recipient address. This feature
      supports emergency fund recovery and asset consolidation operations.
  - name: Miscellaneous
    description: >-
      The Miscellaneous API are supporting APIs that can be used to provide more
      details to other APIs.
  - name: Asset1
  - name: Blockchain
  - name: Webhooks
    description: >-
      Webhooks allow you to set up a notification system that can be used to
      receive updates on certain requests made to the Blockradar API.

      To see full list and instructions
      [https://docs.blockradar.co/essentials/webhooks](https://docs.blockradar.co/essentials/webhooks)


      ##
  - name: Deposit
  - name: Withdraw1
  - name: Swap1
  - name: Gateway1
paths:
  /v1/gateway/withdraw:
    post:
      tags:
        - Gateway
      summary: Master Wallet Withdraw
      description: >-
        This endpoint allows you to initiate a gateway withdrawal.


        ### Body Parameters


        | Key | **Required** | Type | Description |

        | --- | --- | --- | --- |

        | amount | true | string | The amount to be deposited. |

        | address | true | string | The receipient address. |

        | blockchain | true | string | The blockchain network. |

        | reference | false | string | This would be the transaction reference |

        | metadata | false | object | This would be atteched to the transaction
        payload |
      operationId: masterWalletWithdraw
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: string
                  example: '10'
            examples:
              Master Wallet Withdraw:
                value:
                  amount: '10'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      amlScreening:
                        type: object
                        properties:
                          message:
                            type: string
                            example: Address is not sanctioned
                          provider:
                            type: string
                            example: ofac, fbi, tether, circle
                          status:
                            type: string
                            example: success
                      amount:
                        type: string
                        example: '1'
                      amountPaid:
                        type: string
                        example: '1'
                      amountUSD:
                        type: string
                        example: '1'
                      asset:
                        type: object
                        properties:
                          address:
                            type: string
                            example: '0x036CbD53842c5426634e7929541eC2318f3dCF7e'
                          createdAt:
                            type: string
                            example: '2024-05-27T14:31:19.442Z'
                          currency:
                            type: string
                            example: USD
                          decimals:
                            type: number
                            example: 6
                          id:
                            type: string
                            example: 0927dc05-7d4e-4c0a-82c6-98ceb170ab84
                          isActive:
                            type: boolean
                            example: true
                          isNative:
                            type: boolean
                            example: false
                          name:
                            type: string
                            example: USD Coin
                          network:
                            type: string
                            example: testnet
                          standard:
                            nullable: true
                            example: null
                          symbol:
                            type: string
                            example: USDC
                          updatedAt:
                            type: string
                            example: '2025-04-17T04:50:20.019Z'
                      assetSwept:
                        nullable: true
                        example: null
                      assetSweptAmount:
                        nullable: true
                        example: null
                      assetSweptAt:
                        nullable: true
                        example: null
                      assetSweptGasFee:
                        nullable: true
                        example: null
                      assetSweptHash:
                        nullable: true
                        example: null
                      assetSweptRecipientAddress:
                        nullable: true
                        example: null
                      assetSweptSenderAddress:
                        nullable: true
                        example: null
                      blockHash:
                        nullable: true
                        example: null
                      blockNumber:
                        nullable: true
                        example: null
                      blockchain:
                        type: object
                        properties:
                          createdAt:
                            type: string
                            example: '2024-05-27T14:31:14.966Z'
                          derivationPath:
                            type: string
                            example: m/44'/60'/0'/0
                          id:
                            type: string
                            example: 74733889-4ecd-403e-9840-94e87c043f24
                          isActive:
                            type: boolean
                            example: true
                          isEvmCompatible:
                            type: boolean
                            example: true
                          isL2:
                            type: boolean
                            example: true
                          name:
                            type: string
                            example: base
                          slug:
                            type: string
                            example: base
                          symbol:
                            type: string
                            example: eth
                          tokenStandard:
                            nullable: true
                            example: null
                          updatedAt:
                            type: string
                            example: '2024-11-26T20:04:13.945Z'
                      chainId:
                        type: number
                        example: 84532
                      confirmations:
                        nullable: true
                        example: null
                      confirmed:
                        type: boolean
                        example: false
                      createdAt:
                        type: string
                        example: '2025-08-17T01:48:37.989Z'
                      currency:
                        type: string
                        example: USD
                      fee:
                        nullable: true
                        example: null
                      feeHash:
                        nullable: true
                        example: null
                      gasFee:
                        nullable: true
                        example: null
                      gasPrice:
                        nullable: true
                        example: null
                      gasUsed:
                        nullable: true
                        example: null
                      hash:
                        nullable: true
                        example: null
                      id:
                        type: string
                        example: c5e9ec3c-c7b1-4d84-a76e-056b8246f461
                      metadata:
                        nullable: true
                        example: null
                      network:
                        type: string
                        example: testnet
                      note:
                        type: string
                        example: >-
                          Withdrawal of 1 USDC from gateway smart wallet
                          0x0077777d7EBA4688BDeF3E311b846F25870A19B9
                      rate:
                        nullable: true
                        example: null
                      rateUSD:
                        type: string
                        example: '1'
                      reason:
                        type: string
                        example: >-
                          Balance Before: 9.749252 USDC | Network Fee: 2.005999
                          USDC | Gasless: false
                      recipientAddress:
                        type: string
                        example: '0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22'
                      reference:
                        type: string
                        example: tcApNlezq
                      senderAddress:
                        type: string
                        example: '0x947514e4B803e312C312da0F1B41fEDdbe15ae7a'
                      signedTransaction:
                        nullable: true
                        example: null
                      status:
                        type: string
                        example: PENDING
                      toAmount:
                        nullable: true
                        example: null
                      toCurrency:
                        nullable: true
                        example: null
                      tokenAddress:
                        nullable: true
                        example: null
                      type:
                        type: string
                        example: GATEWAY_WITHDRAW
                      updatedAt:
                        type: string
                        example: '2025-08-17T01:48:37.989Z'
                      wallet:
                        type: object
                        properties:
                          address:
                            type: string
                            example: '0x947514e4B803e312C312da0F1B41fEDdbe15ae7a'
                          configurations:
                            nullable: true
                            example: null
                          createdAt:
                            type: string
                            example: '2024-08-22T16:05:46.167Z'
                          derivationPath:
                            type: string
                            example: m/44'/60'/0'/0/0
                          description:
                            type: string
                            example: This is Base wallet
                          id:
                            type: string
                            example: e17dea25-6c01-4b3a-a4ae-51f411bf69cd
                          isActive:
                            type: boolean
                            example: true
                          name:
                            type: string
                            example: Base Wallet
                          network:
                            type: string
                            example: testnet
                          status:
                            type: string
                            example: ACTIVE
                          updatedAt:
                            type: string
                            example: '2024-08-22T16:05:46.167Z'
                  message:
                    type: string
                    example: Withdraw initiated successfully
                  statusCode:
                    type: number
                    example: 200
              examples:
                '200':
                  value:
                    data:
                      amlScreening:
                        message: Address is not sanctioned
                        provider: ofac, fbi, tether, circle
                        status: success
                      amount: '1'
                      amountPaid: '1'
                      amountUSD: '1'
                      asset:
                        address: '0x036CbD53842c5426634e7929541eC2318f3dCF7e'
                        createdAt: '2024-05-27T14:31:19.442Z'
                        currency: USD
                        decimals: 6
                        id: 0927dc05-7d4e-4c0a-82c6-98ceb170ab84
                        isActive: true
                        isNative: false
                        name: USD Coin
                        network: testnet
                        standard: null
                        symbol: USDC
                        updatedAt: '2025-04-17T04:50:20.019Z'
                      assetSwept: null
                      assetSweptAmount: null
                      assetSweptAt: null
                      assetSweptGasFee: null
                      assetSweptHash: null
                      assetSweptRecipientAddress: null
                      assetSweptSenderAddress: null
                      blockHash: null
                      blockNumber: null
                      blockchain:
                        createdAt: '2024-05-27T14:31:14.966Z'
                        derivationPath: m/44'/60'/0'/0
                        id: 74733889-4ecd-403e-9840-94e87c043f24
                        isActive: true
                        isEvmCompatible: true
                        isL2: true
                        name: base
                        slug: base
                        symbol: eth
                        tokenStandard: null
                        updatedAt: '2024-11-26T20:04:13.945Z'
                      chainId: 84532
                      confirmations: null
                      confirmed: false
                      createdAt: '2025-08-17T01:48:37.989Z'
                      currency: USD
                      fee: null
                      feeHash: null
                      gasFee: null
                      gasPrice: null
                      gasUsed: null
                      hash: null
                      id: c5e9ec3c-c7b1-4d84-a76e-056b8246f461
                      metadata: null
                      network: testnet
                      note: >-
                        Withdrawal of 1 USDC from gateway smart wallet
                        0x0077777d7EBA4688BDeF3E311b846F25870A19B9
                      rate: null
                      rateUSD: '1'
                      reason: >-
                        Balance Before: 9.749252 USDC | Network Fee: 2.005999
                        USDC | Gasless: false
                      recipientAddress: '0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22'
                      reference: tcApNlezq
                      senderAddress: '0x947514e4B803e312C312da0F1B41fEDdbe15ae7a'
                      signedTransaction: null
                      status: PENDING
                      toAmount: null
                      toCurrency: null
                      tokenAddress: null
                      type: GATEWAY_WITHDRAW
                      updatedAt: '2025-08-17T01:48:37.989Z'
                      wallet:
                        address: '0x947514e4B803e312C312da0F1B41fEDdbe15ae7a'
                        configurations: null
                        createdAt: '2024-08-22T16:05:46.167Z'
                        derivationPath: m/44'/60'/0'/0/0
                        description: This is Base wallet
                        id: e17dea25-6c01-4b3a-a4ae-51f411bf69cd
                        isActive: true
                        name: Base Wallet
                        network: testnet
                        status: ACTIVE
                        updatedAt: '2024-08-22T16:05:46.167Z'
                    message: Withdraw initiated successfully
                    statusCode: 200
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````