# buildTransaction

### Description

Transforms a generic transaction request into a blockchain-specific transaction with all necessary parameters populated for the target network.

**What this endpoint does:**

* Validates transaction data against the specified blockchain network
* Converts generic amounts to blockchain-native units (e.g., 0.1 SUI → 100000000 MIST)
* Calculates and populates network-specific parameters (gas price, gas budget, nonce)
* Transforms generic transaction types to chain-specific types (TRANSFER → SUI\_TRANSFER)
* Returns a structured transaction request ready for confirmation and execution

**Supported transaction types:**

* **Native transfers**:\ Send blockchain's native currency (ETH, SUI, MATIC, etc.)
* **Token transfers**:\ Send ERC-20 or equivalent tokens
* **NFT transfers**:\ Transfer ERC-721/ERC-1155 or equivalent NFTs
* **Contract execution**:\ Call smart contract functions
* **Multi-transfers**:\ Batch multiple operations (Hedera only)

{% code overflow="wrap" %}

```javascript
public buildTransaction(reqParams: VyBuildTransactionRequestBase) : VyPromise<VyTransactionRequestBase>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| reqParams | [VyBuildTransactionRequestBase](/sdk-reference/ts-js-v3/object-references/wallet/vybuildtransactionrequestbase.md) | Request data for the operation |
| --------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------ |

**Returns**

VyPromise<[VyTransactionRequestBase](/sdk-reference/ts-js-v3/object-references/wallet/vytransactionrequestbase.md)>\
Transaction prepared for a specific chain successfully.
{% endtab %}
{% endtabs %}


---

# 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://sdk.venly.io/sdk-reference/ts-js-v3/function-references/wallet/transactions/buildtransaction.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.
