> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phantom.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a transaction

> Send Sui transactions through Phantom by constructing transaction parameters and requesting a signature.

Once a dapp is connected to Phantom, it can request user permission to send transactions on their behalf. To initiate a transaction, ensure you have the necessary parameters. For details on constructing transactions, refer to [Sui developer documentation](https://sdk.mystenlabs.com/typescript/transaction-building/basics).

```typescript theme={null}
const transactionParams = {
        transaction: await tx.toJSON(), // Replace with actual transaction
        address: address.toString(), // Sender address
        networkID: SupportedSuiChainIds.SuiMainnet, // or your network ID
};
```

To prompt Phantom to send a transaction to the network, refer to the following code snippet:

```typescript theme={null}
try {
    const signature = await provider.signTransaction(params);
    return signature;
} catch (error) {
    throw new Error(error instanceof Error ? error.message : 'Failed to sign transaction');
}
```
