# multisig-execute (/docs/tx/multisig-execute)

Sends the full inner call along with an approval. If this is the first
approval (omit `timepoint`), it opens the operation and reserves a
deposit from the signer, returned when the operation completes or is
cancelled. If it is the final approval — bringing the count to
`threshold` — the inner call executes as the multisig account in the
same extrinsic. Intermediate signers can use the cheaper
`multisig_approve` (hash only), but whoever approves last must use this
intent so the chain has the call to run. Every approval must repeat the
same threshold, signatory set, and call; later approvals must also pass
the opening `timepoint` or they will not match the pending operation.

| Signer    | Origin                                 | Pallet   | Wraps               |
| --------- | -------------------------------------- | -------- | ------------------- |
| `coldkey` | signed account (pallet role may apply) | Multisig | `Multisig.as_multi` |

## Parameters [#parameters]

| Parameter           | Type    | Required | Description                                                                                                                                                                                                                                                                            |
| ------------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `threshold`         | integer | yes      | Number of approvals required to execute, counting the signer. Together with the full signatory set it identifies the multisig account, so it must match on every approval.                                                                                                             |
| `other_signatories` | array   | yes      | The other members of the multisig (every signatory except the signer), as a JSON list of addresses. The same set must be given on every approval; order does not matter (sorted automatically).                                                                                        |
| `call`              | object  | yes      | The inner call to dispatch from the multisig account, as a JSON object \{"op": \<intent name>, ...args}. All approvals must describe the identical call — it is matched by hash. Its arguments must be fully explicit, since it runs as the multisig account, not the signer's wallet. |
| `timepoint`         | object  | no       | Block height and extrinsic index of the approval that opened the operation, as a JSON object \{"height": ..., "index": ...}. Omit on the first approval; required on every later one (read it with the multisig query).                                                                |

Address parameters (`--hotkey`, `--coldkey`, `--dest`, ...) accept a raw ss58
address, an address-book or proxy-book name, or a local wallet/hotkey name.

## CLI [#cli]

Preview with `--dry-run` (shows fee, effects, and policy result without
submitting), then submit:

```bash
btcli tx multisig-execute \
  --threshold <int> \
  --other-signatories <a,b,c> \
  --call '<json>' --dry-run
btcli tx multisig-execute \
  --threshold <int> \
  --other-signatories <a,b,c> \
  --call '<json>' -w my_coldkey
```

## Python [#python]

```python
import bittensor as bt
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = bt.MultisigExecute(threshold=0, other_signatories=[...], call={...})

sub = bt.Subtensor()
plan = sub.plan(intent, wallet)   # fee, effects, policy — no submission
result = sub.execute(intent, wallet)
if not result.success:
    print(result.error.code, result.error.remediation)
```

(`bt.Subtensor` is also the async client — `async with bt.Subtensor() as client:`
— see [The client](/docs/concepts/client).) Or build the intent by op name, as
an agent would:

```python
result = sub.execute_tool("multisig_execute", {...}, wallet)
```

## On-chain implementation [#on-chain-implementation]

`Multisig.as_multi` is implemented by Substrate's `pallet_multisig`, outside this repository's pallets.

Every file is browsable under [/code](/code) exactly as built into the runtime, or as plain text under `/code/raw/<path>` (index: [`/code/index.json`](/code/index.json)).
