This call was removed in v127
This call is no longer available in the current runtime. Existed from v123 to v127. Shown here for historical reference.
propose
Call Removed v123 → v126, v127 → v127 (removed) #2Proposes a call for Senate voting.
Call Workflow
Click items to navigate. Pan and zoom to explore.
The Big Picture
Initiates the governance process.
Use Cases
- Submit governance proposals
From Chain Metadata
Add a new proposal to either be voted on or executed directly. Requires the sender to be member. `threshold` determines whether `proposal` is executed directly (`threshold < 2`) or put up for voting. ## Complexity `O(B + M + P1)` or `O(B + M + P2)` where: `B` is `proposal` size in bytes (length-fee-bounded) `M` is members-count (code- and governance-bounded) branching is influenced by `threshold` where: `P1` is proposal execution complexity (`threshold < 2`) `P2` is proposals-count (code-bounded) (`threshold >= 2`)
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | proposal | RuntimeCall | proposal (RuntimeCall) |
| 1 | length_bound | Compact<u32> Cpt | length_bound (Compact<u32>) (SCALE compact -> integer) |
| 2 | duration | u32 | duration (u32) |
Permissions
Permission data inferred from metadata. May be incomplete.
Requirements
- Origin is a Senate member
Effects
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Build propose call
const proposal = 0 as any /* RuntimeCall */;
const length_bound = 0;
const duration = 0;
const call = api.tx[stringCamelCase("Senate")][stringCamelCase("propose")](
proposal,
length_bound,
duration
);Version History
Runtime Info
- Pallet Index
- 10
- Call Index
- 2
- First Version
- v123
- Removed In
- v127