---
title: "Master Wallet Execute"
method: POST
path: "/v1/wallets/{walletId}/swaps/execute"
tags: ["Swap"]
---

# Master Wallet Execute

`POST /v1/wallets/{walletId}/swaps/execute`

This endpoint allows the execution of a swap.

### Body Parameters

| Key | **Required** | Type | Description |
| --- | --- | --- | --- |
| fromAssetId | true | string | The master wallet asset id to swap from. |
| toAssetId | true | string | The master wallet asset id to swap to. |
| amount | true | string | The amount to swap. |
| recipientAddress | false | string | The external address you want to swap to |
| reference | false | string | This would be the transaction reference |
| metadata | false | object | This would be atteched to the transaction payload |
| order | false | string | eg, FASTEST, CHEAPEST, RECOMMENDED, NO_SLIPPAGE |

## Response `200`

200 - External Recipient Address / 200 - Recipient Master Wallet

- object
  - `data` object
    - `addressId` unknown
    - `amlScreening` unknown
    - `amount` string
    - `amountPaid` unknown
    - `asset` object
      - `address` string
      - `blockchain` object
        - `createdAt` string
        - `derivationPath` string
        - `id` string
        - `isActive` boolean
        - `isEvmCompatible` boolean
        - `isL2` boolean
        - `logoUrl` string
        - `name` string
        - `slug` string
        - `symbol` string
        - `tokenStandard` string
        - `updatedAt` string
      - `createdAt` string
      - `decimals` number
      - `id` string
      - `isActive` boolean
      - `logoUrl` string
      - `name` string
      - `network` string
      - `standard` string
      - `symbol` string
      - `updatedAt` string
    - `assetSwept` unknown
    - `assetSweptAmount` unknown
    - `assetSweptAt` unknown
    - `assetSweptGasFee` unknown
    - `assetSweptHash` unknown
    - `assetSweptRecipientAddress` unknown
    - `assetSweptResponse` unknown
    - `assetSweptSenderAddress` unknown
    - `blockHash` unknown
    - `blockNumber` unknown
    - `blockchain` object
      - `createdAt` string
      - `derivationPath` string
      - `id` string
      - `isActive` boolean
      - `isEvmCompatible` boolean
      - `isL2` boolean
      - `logoUrl` string
      - `name` string
      - `slug` string
      - `symbol` string
      - `tokenStandard` string
      - `updatedAt` string
    - `chainId` unknown
    - `confirmations` unknown
    - `confirmed` boolean
    - `createdAt` string
    - `currency` unknown
    - `fee` unknown
    - `feeMetadata` unknown
    - `gasFee` unknown
    - `gasPrice` unknown
    - `gasUsed` unknown
    - `hash` unknown
    - `id` string
    - `metadata` unknown
    - `network` string
    - `note` unknown
    - `rate` string
    - `reason` unknown
    - `recipientAddress` string
    - `senderAddress` string
    - `status` string
    - `toAmount` string
    - `toAsset` object
      - `address` string
      - `blockchain` object
        - `createdAt` string
        - `derivationPath` string
        - `id` string
        - `isActive` boolean
        - `isEvmCompatible` boolean
        - `isL2` boolean
        - `logoUrl` string
        - `name` string
        - `slug` string
        - `symbol` string
        - `tokenStandard` unknown
        - `updatedAt` string
      - `createdAt` string
      - `decimals` number
      - `id` string
      - `isActive` boolean
      - `logoUrl` string
      - `name` string
      - `network` string
      - `standard` unknown
      - `symbol` string
      - `updatedAt` string
    - `toBlockchain` object
      - `createdAt` string
      - `derivationPath` string
      - `id` string
      - `isActive` boolean
      - `isEvmCompatible` boolean
      - `isL2` boolean
      - `logoUrl` string
      - `name` string
      - `slug` string
      - `symbol` string
      - `tokenStandard` unknown
      - `updatedAt` string
    - `toWallet` object
      - `address` string
      - `configurations` unknown
      - `createdAt` string
      - `derivationPath` string
      - `description` string
      - `id` string
      - `isActive` boolean
      - `name` string
      - `network` string
      - `status` string
      - `updatedAt` string
    - `tokenAddress` unknown
    - `type` string
    - `updatedAt` string
    - `wallet` object
      - `address` string
      - `apiCredential` object
        - `createdAt` string
        - `id` string
        - `isActive` boolean
        - `key` string
        - `revokedAt` unknown
        - `status` string
        - `type` string
        - `updatedAt` string
        - `webhookUrl` string
      - `blockchain` object
        - `createdAt` string
        - `derivationPath` string
        - `id` string
        - `isActive` boolean
        - `isEvmCompatible` boolean
        - `isL2` boolean
        - `logoUrl` string
        - `name` string
        - `slug` string
        - `symbol` string
        - `tokenStandard` string
        - `updatedAt` string
      - `business` object
        - `configurations` object
          - `billing` object
            - `ccEmails` string[]
            - `toEmails` string[]
          - `contact` object
            - `email` string
          - `details` object
            - `description` string
            - `website` string
          - `hideLogoUrlInResponse` boolean
          - `useCustomWebhookSignatureHeader` boolean
        - `createdAt` string
        - `id` string
        - `name` string
        - `sector` string
        - `seedPhrase` string
        - `status` string
        - `testnetSeedPhrase` string
        - `updatedAt` string
        - `user` object
          - `configurations` object
            - `setNewPasswordRequired` boolean
          - `createdAt` string
          - `email` string
          - `emailVerified` boolean
          - `firstname` string
          - `id` string
          - `lastname` string
          - `twoFactorAuthEnabled` boolean
          - `updatedAt` string
      - `configurations` unknown
      - `createdAt` string
      - `derivationPath` string
      - `description` string
      - `id` string
      - `isActive` boolean
      - `name` string
      - `network` string
      - `status` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number

---

[API](https://skmtc.net/blockradar/apis/blockradar-documentation.md) · [All operations](https://skmtc.net/blockradar/apis/blockradar-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockradar/blockradar-documentation/revisions/97f95b4cfc0d/schema)
