> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.shimi.cash/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server.

# Send Crypto

POST https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out
Content-Type: application/json

Sends crypto from your balance to an external address.

**Body**

| Field        | Type    | Required | Rules                                                                          |
| ------------ | ------- | -------- | ------------------------------------------------------------------------------ |
| `networkId`  | string  | yes      | Network `id`.                                                                  |
| `address`    | string  | yes      | **Source** address - one of your generated deposit addresses on that network.  |
| `amount`     | number  | yes      | JSON number > 0 (strings rejected), in the asset's whole units.                |
| `currencyId` | integer | yes      | JSON number > 0; must be a crypto currency from **List Supported Currencies**. |
| `to`         | string  | yes      | Destination wallet address.                                                    |

**Behaviour**

* The on-chain balance of `address` is checked first; if it is lower than `amount` (or zero) the request fails with `Insufficient funds. Balance: <x>, Required: <amount>`.
* On success a withdrawal record is created with `status: "pending"`, `direction: "out"` and `txHash: null`; the destination is echoed back as `tokenAddress`. Track it via **List Crypto Transactions**.
* Balance lookup errors are prefixed `Failed to fetch balance - `.

Reference: https://docs.shimi.cash/api-reference/shimi-api/crypto/send-crypto

## Authentication

- `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes).

## Request

### Body (application/json)

This endpoint expects an object.

- `networkId` (string, optional)
- `address` (string, optional)
- `amount` (double, optional)
- `currencyId` (integer, optional)
- `to` (string, optional)

## Response

### 200

OK

- `status` (string, optional)
- `data` (CryptoSendOutPostResponsesContentApplicationJsonSchemaData, optional)

## Errors

### 400 Bad Request Error

Missing fields / Invalid amount / Invalid currency ID / Unsupported currency / Source address not found / Insufficient funds / Network not found / Balance lookup failed

- `status` (string, optional)
- `message` (string, optional)

### 401 Unauthorized Error

Unauthorized

- `message` (string, optional)

### 403 Forbidden Error

Invalid or expired access token / KYB not approved / Account deactivated

- `message` (string, optional)
- `code` (string, optional)
- `kybStatus` (string, optional)

## Types

### CryptoSendOutPostResponsesContentApplicationJsonSchemaData

- `transaction` (CryptoSendOutPostResponsesContentApplicationJsonSchemaDataTransaction, optional)

### CryptoSendOutPostResponsesContentApplicationJsonSchemaDataTransaction

- `networkId` (string, optional)
- `tokenAddress` (string, optional)
- `amount` (double, optional)
- `asset` (string, optional)
- `status` (string, optional)
- `direction` (string, optional)
- `txHash` (string, optional, nullable)
- `createdAt` (string, optional)

## Examples

### 200 Withdrawal queued

**Response**

```json
{
  "status": "success",
  "data": {
    "transaction": {
      "networkId": "cm8r2n6sx0002lt0f9q1w4e7y",
      "tokenAddress": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
      "amount": 25.5,
      "asset": "USDT",
      "status": "pending",
      "direction": "out",
      "txHash": null,
      "createdAt": "2026-10-04T11:47:03.218Z"
    }
  }
}
```

**SDK Code**

```python 200 Withdrawal queued
import requests

url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript 200 Withdrawal queued
const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 200 Withdrawal queued
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 200 Withdrawal queued
require 'uri'
require 'net/http'

url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java 200 Withdrawal queued
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php 200 Withdrawal queued
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp 200 Withdrawal queued
using RestSharp;

var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift 200 Withdrawal queued
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Crypto_sendCrypto_example

**Request**

```json
{
  "networkId": "{{network_id}}",
  "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "amount": 25.5,
  "currencyId": 2,
  "to": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}
```

**Response**

```json
{
  "status": "success",
  "data": {
    "transaction": {
      "networkId": "cm8r2n6sx0002lt0f9q1w4e7y",
      "tokenAddress": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
      "amount": 25.5,
      "asset": "USDT",
      "status": "pending",
      "direction": "out",
      "txHash": null,
      "createdAt": "2026-10-04T11:47:03.218Z"
    }
  }
}
```

**SDK Code**

```python Crypto_sendCrypto_example
import requests

url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out"

payload = {
    "networkId": "{{network_id}}",
    "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "amount": 25.5,
    "currencyId": 2,
    "to": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Crypto_sendCrypto_example
const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"networkId":"{{network_id}}","address":"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU","amount":25.5,"currencyId":2,"to":"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Crypto_sendCrypto_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out"

	payload := strings.NewReader("{\n  \"networkId\": \"{{network_id}}\",\n  \"address\": \"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU\",\n  \"amount\": 25.5,\n  \"currencyId\": 2,\n  \"to\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Crypto_sendCrypto_example
require 'uri'
require 'net/http'

url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"networkId\": \"{{network_id}}\",\n  \"address\": \"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU\",\n  \"amount\": 25.5,\n  \"currencyId\": 2,\n  \"to\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n}"

response = http.request(request)
puts response.read_body
```

```java Crypto_sendCrypto_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"networkId\": \"{{network_id}}\",\n  \"address\": \"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU\",\n  \"amount\": 25.5,\n  \"currencyId\": 2,\n  \"to\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n}")
  .asString();
```

```php Crypto_sendCrypto_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out', [
  'body' => '{
  "networkId": "{{network_id}}",
  "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "amount": 25.5,
  "currencyId": 2,
  "to": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Crypto_sendCrypto_example
using RestSharp;

var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"networkId\": \"{{network_id}}\",\n  \"address\": \"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU\",\n  \"amount\": 25.5,\n  \"currencyId\": 2,\n  \"to\": \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Crypto_sendCrypto_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "networkId": "{{network_id}}",
  "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "amount": 25.5,
  "currencyId": 2,
  "to": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/send-out")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```