> For the complete documentation index, see [llms.txt](https://docs.clique.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clique.tech/clique-wallet/features-and-capabilities/parameter-based-transaction-building.md).

# Parameter-Based Transaction Building

Instead of passing complete transaction objects, Clique Wallet supports building transactions from parameters. This approach provides full control over transaction construction and ensures transaction validity before signing.

#### How It Works

* **Parameter Input**: Provide transaction parameters (e.g., recipient address, amount, token address, decimals) instead of a complete transaction object
* **Server-Side Construction**: Clique Wallet constructs the transaction server-side, ensuring all parameters are valid and properly formatted
* **Automatic Validation**: All transaction parameters are validated before construction, preventing invalid or malformed transactions
* **Gas Estimation**: Gas limits and fees are automatically estimated and set correctly based on current network conditions
* **TEE Signing**: The constructed transaction is signed within the TEE and returned as a ready-to-submit raw transaction

#### Benefits

* **Enhanced Security**: Server-side construction ensures transactions are built correctly and cannot be tampered with
* **Simplified Integration**: No need to construct complex transaction objects—simply provide the necessary parameters
* **Automatic Optimization**: Gas estimation and fee calculation are handled automatically, ensuring optimal transaction parameters
* **Error Prevention**: Invalid parameters are caught before transaction construction, preventing failed transactions

#### Example Use Cases

* **Transfer Transactions**: Build transfer transactions by providing recipient address, amount, token address (optional for native transfers), and decimals
* **Contract Interactions**: Build contract interaction transactions by providing contract address, function parameters, and transaction data
* **Complex Operations**: Build multi-step operations like vault deposits, approvals, or redeems using structured parameter sets

Parameter-based transaction building works seamlessly with whitelist signing, providing comprehensive security and control over your wallet operations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.clique.tech/clique-wallet/features-and-capabilities/parameter-based-transaction-building.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
