4.6 KiB
Extrinsics
The following sections contain Extrinsics methods are part of the default Substrate runtime. Since an Extrinsic is a holder of an object that is just an array of bytes to be included, it does not have a return.
balances
▸ setBalance(who: Address, free: Balance, reserved: Balance)
▸ transfer(dest: Address, value: Balance)
consensus
▸ noteOffline(offline_val_indices: Vec<u32>)
▸ remark(remark: Bytes)
▸ reportMisbehavior(report: MisbehaviorReport)
▸ setCode(new: Bytes)
▸ setStorage(items: Vec<KeyValue>)
contract
▸ call(dest: AccountId, value: Balance, gas_limit: Gas, data: Bytes)
▸ create(value: Balance, gas_limit: Gas, init_code: Bytes, data: Bytes)
council
▸ presentWinner(candidate: Address, total: Balance, index: VoteIndex)
▸ reapInactiveVoter(reporter_index: u32, who: Address, who_index: u32, assumed_vote_index: VoteIndex)
▸ removeMember(who: Address)
▸ retractVoter(index: u32)
▸ setApprovals(votes: Vec<bool>, index: VoteIndex)
▸ setDesiredSeats(count: u32)
▸ setPresentationDuration(count: BlockNumber)
▸ setTermDuration(count: BlockNumber)
▸ submitCandidacy(slot: u32)
councilMotions
▸ propose(threshold: u32, proposal: Proposal)
▸ vote(proposal: Hash, index: ProposalIndex, approve: bool)
councilVoting
▸ propose(proposal: Proposal)
▸ setCooloffPeriod(blocks: BlockNumber)
▸ setVotingPeriod(blocks: BlockNumber)
▸ veto(proposal_hash: Hash)
▸ vote(proposal: Hash, approve: bool)
democracy
▸ cancelReferendum(ref_index: ReferendumIndex)
▸ propose(proposal: Proposal, value: Balance)
▸ second(proposal: PropIndex)
▸ startReferendum(proposal: Proposal, vote_threshold: VoteThreshold)
▸ vote(ref_index: ReferendumIndex, approve_proposal: bool)
session
▸ forceNewSession(apply_rewards: bool)
▸ setKey(key: SessionKey)
▸ setLength(new: BlockNumber)
staking
▸ forceNewEra(apply_rewards: bool)
▸ nominate(target: Address)
▸ registerPreferences(intentions_index: u32, prefs: ValidatorPrefs)
▸ setBondingDuration(new: BlockNumber)
▸ setOfflineSlashGrace(new: u32)
▸ setSessionsPerEra(new: BlockNumber)
▸ setValidatorCount(new: u32)
▸ stake()
▸ unnominate(target_index: u32)
▸ unstake(intentions_index: u32)
timestamp
▸ set(now: Moment)
treasury
▸ approveProposal(proposal_id: ProposalIndex)
▸ configure(proposal_bond: Permill, proposal_bond_minimum: Balance, spend_period: BlockNumber, burn: Permill)
▸ proposeSpend(value: Balance, beneficiary: AccountId)
▸ rejectProposal(roposal_id: ProposalIndex)
▸ setPot(new_pot: Balance)