# How to transfer native token?

* **transfer**

This function is used to transfer native tokens from one account to another.

{% code lineNumbers="true" fullWidth="false" %}

```typescript
import { L1XProvider, NativeTokenTransferArg } from "@l1x/l1x-wallet-sdk";

let l1xProvider = new L1XProvider({
  clusterType: "mainnet",
  endpoint: "https://v2-mainnet-rpc.l1x.foundation",
});

let params: NativeTokenTransferArg = {
  private_key: "YOUR_PRIVATE_KEY",
  receipient_address: "f060c5232a76cd8cfb931c1e199cfd5dc2e4ee07",
  value: 100,
  fee_limit: 2,
  broadcast: false,
};

l1xProvider.core
  .transfer(params)
  .then((response) => console.log(response)) // log response
  .catch((err) => console.error(err)); // log error

```

{% endcode %}

**Parameters**:

The transfer details object

```json
{
  "private_key": "YOUR_PRIVATE_KEY",
  "receipient_address": "f060c5232a76cd8cfb931c1e199cfd5dc2e4ee07",
  "value": 100,
  "fee_limit": 2,
  "broadcast": false
}
```

**Returns:**

A promise that resolves when the transaction is submitted.

```json
{
    "hash": "b87c8a2fbd88ea3a3e4e304b484e0a21fbf99980d26514e8f987172ec294950c"
}
```


---

# 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://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/native-token-methods/how-to-transfer-native-token.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.
