Skip to main content
PUT
/
accounts
/
swap
/
crypto
/
{id}
Update a crypto swap account
curl --request PUT \
  --url https://api.platform.dakota.xyz/accounts/swap/crypto/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "destination_id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "destination_asset": "USDC"
}
'
{
  "id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "source_crypto_address": "0x1234",
  "source_network_id": "ethereum-mainnet",
  "destination": {
    "destination_id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
    "destination_type": "crypto",
    "name": "My Ethereum Wallet",
    "crypto_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "family": "evm",
    "network_id": "ethereum-mainnet"
  },
  "source_asset": "USDC",
  "destination_asset": "USDC"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json
destination_id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

destination_asset
string
required

Asset to receive at the destination.

Example:

"USDC"

Response

Crypto swap account updated successfully

id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

source_crypto_address
string
required
Example:

"0x1234"

source_network_id
enum<string>
required

Identifier for a blockchain network

Available options:
ethereum-mainnet,
ethereum-sepolia,
ethereum-goerli,
ethereum-holesky,
solana-mainnet,
solana-devnet,
solana-testnet,
base-mainnet,
base-sepolia,
arbitrum-mainnet,
arbitrum-sepolia,
optimism-mainnet,
optimism-sepolia,
avalanche-mainnet,
avalanche-fuji,
polygon-mainnet,
polygon-amoy
Required string length: 1 - 30
Example:

"ethereum-mainnet"

destination
Crypto Destination Response · object

Response for a crypto destination.

source_asset
string

Asset to send into the account.

Example:

"USDC"

destination_asset
string

Asset to receive at the destination.

Example:

"USDC"