# finalizeTransactionSigning

The `finalizeTransactionSigning` method adds signatures to a Cosmos transaction and finalizes it for broadcasting to the network.

## Usage

```ts twoslash
// [!include ~/snippets/code/chains.ts]
const { transaction, hashesToSign } =
  await cosmosChain.prepareTransactionForSigning({
    address: 'cosmos1...',
    publicKey: '0350e8...',
    messages: [
      {
        typeUrl: '/cosmos.bank.v1beta1.MsgSend',
        value: {
          fromAddress: 'cosmos1...',
          toAddress: 'cosmos1...',
          amount: [{ denom: 'uatom', amount: '1000000' }],
        },
      },
    ],
    memo: 'Token transfer',
  })
// ---cut---
import { RSVSignature } from 'signet.js'

const rsvSignatures: RSVSignature[] = [
  {
    r: '123...',
    s: '123...',
    v: 27,
  },
]

const signedTx = cosmosChain.finalizeTransactionSigning({
  transaction,
  rsvSignatures,
})
```

## Parameters

| Parameter       | Type                        | Description                                                       |
| --------------- | --------------------------- | ----------------------------------------------------------------- |
| `transaction`   | `CosmosUnsignedTransaction` | The unsigned transaction object from prepareTransactionForSigning |
| `rsvSignatures` | `RSVSignature[]`            | Array of RSV signatures from the MPC network                      |

## Returns

| Type     | Description                                                             |
| -------- | ----------------------------------------------------------------------- |
| `string` | The serialized signed transaction in hex format, ready for broadcasting |
