# Get BTC and ETH Address

*<mark style="color:red;">ONLY SUPPORTS BTC, ETH, ERC20-USDT, ERC20-USDC.</mark>*

<mark style="color:red;">For Tron please refer to</mark> [Get Tron Address](/hyperhashing-api/permanent-address-v1/get-tron-address.md)

The Single Use Payment API endpoint is designed to generate a payment address for one-time transactions. This address should not be reused for subsequent payments.

**Request URL**

* **Endpoint:** `/v1/getaddress`
* **Method:** POST

**Supported Symbols**

* Bitcoin - btc
* ERC20 Tokens:
  * Tether - usdt
  * USD Coin - usdc

**Request Parameters**

<table><thead><tr><th>Parameter Name</th><th width="145">Required</th><th width="173">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>merchant_id</td><td>Yes</td><td>string</td><td></td></tr><tr><td>hash</td><td>Yes</td><td>string</td><td></td></tr><tr><td>data</td><td>Yes</td><td>object</td><td>Contains transaction details</td></tr><tr><td>— symbol</td><td>Yes</td><td>string</td><td>e.g., 'btc', 'usdt', 'usdc'</td></tr><tr><td>— usd_price</td><td>Yes</td><td>number</td><td></td></tr><tr><td>— type</td><td>Yes</td><td>string</td><td>'not_sell'</td></tr><tr><td>— timestamp</td><td>Yes</td><td>number</td><td></td></tr></tbody></table>

**Request Example**

```json
{
  "merchant_id": "9cc5c-d243a-9f952-66b92",
  "hash": "sm2uliyCbmCP0ISZw/Cm41qO3jbww7VdoH27MLWfrcDHY7IfiEPIC72VCovIlEfmeQAI3wFrKoZiflbCJKpFOA==",
  "data": {
    "symbol": "usdt",
    "usd_price": 120,
    "type": "not_sell",
    "timestamp": 1582886573
  }
}
```

**Response Example**

```json
{
  "statusCode": 200,
  "address": "0xBA5553f701AB78164082Ebe482104065C920Ff3a",
  "amount": 622.4489,
  "symbol": "usdt"
}
```

**Response Parameters**

| Parameter Name | Type   | Explanation                    |
| -------------- | ------ | ------------------------------ |
| statusCode     | int    |                                |
| address        | string | Generated one-time use address |
| amount         | number | Token Amount need to be paid.  |
| symbol         | string | Payment symbol (e.g., 'usdt')  |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hyperhashing.gitbook.io/hyperhashing-api/single-use-payment-v1/get-btc-and-eth-address.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
