# 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.
