# Send USDC from Hydration to EWX

#### Key facts you must know

* **USDC uses 6 decimals**.
  * **1 USDC = 1,000,000** base units.
* You will replace two fields before submitting:
  * the **recipient public key** (AccountId32)
  * the **USDC amount** (base units)

{% hint style="warning" %}
Safety tip: Do a small test first (e.g., 0.5–1 USDC) before sending a large amount.
{% endhint %}

#### Step 1: Check your USDC balance on Hydration (optional)

Open the Hydration explorer and paste your Hydration account address:

```
https://hydration.subscan.io/account/
```

#### Step 2: Open Polkadot.js "Decode call" on Hydration (transaction-enabled RPC)

Use this Polkadot.js Apps link (Hydration RPC):

```
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fhydration.dotters.network#/extrinsics/decode
```

#### Step 3: Paste the pre-built hex call

In **"hex-encoded call"**, paste this exact value:

```
0x89001600000020a107000000000000000000000000000401020045340100d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d00
```

{% hint style="info" %}
This call is pre-built with Alice's address as the recipient for testing. You will replace it with your own recipient address in Step 5.
{% endhint %}

**Verify (do not skip)**

Confirm the decoded call shows:

* pallet: **xTokens**, call: **transfer**
* `currencyId`: **22** (USDC on Hydration)
* `dest` → Parachain **3345** (EWX), AccountId32
* `destWeightLimit`: **Unlimited**
* the `amount` field is present and editable

If anything looks different, **STOP** and do not sign.

#### Step 4: Get the recipient "hex public key" (32-byte AccountId32)

Open Polkadot.js Utilities on the Hydration RPC:

```
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fhydration.dotters.network#/utilities
```

**Choose the destination address**

* If you are sending to the **same wallet account on EWX**, use your own address.
* If you are sending to a **different EWX account**, use that account's address.

**Convert address → hex public key**

In Utilities, use the tool that converts an address to hex (often labeled **"Address to Hex"**):

1. Paste the destination EWX address
2. Copy the output **hex public key**

It should look like:

* starts with `0x`
* followed by **64 hex characters** (32 bytes)

#### Step 5: Fill recipient + amount on the Submission tab

Go back to the Decode page and click **Submission**.

**A) Paste the recipient public key**

Find the field under `dest`:

* **AccountId32 → id: \[u8;32]**

Paste the recipient **hex public key** (from Step 4).

**B) Enter the USDC amount (base units)**

Find:

* **amount: u128**

Enter the amount in base units (6 decimals):

```
USDC_to_send × 1,000,000 = base_units
```

Examples:

* 0.5 USDC → `500000`
* 1 USDC → `1000000`
* 10 USDC → `10000000`
* 12.34 USDC → `12340000`

#### Step 6: Submit the transaction

1. Click **Submit Transaction**
2. Approve/sign in your wallet

#### Step 7: Confirm on EWX explorer

After it processes, check the recipient address on the EWX explorer:

```
https://energywebx.subscan.io/account/
```

You should see the USDC balance on EWX.

***


---

# 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://docs.energyweb.org/ewx-ecosystem/bring-your-own-token/bridging-usdc/send-usdc-from-hydration-to-ewx.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.
