2496 lines
66 KiB
HTML
2496 lines
66 KiB
HTML
|
|
<!DOCTYPE HTML>
|
|
<html lang="" >
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
<title>Extrinsics (runtime) · Polkadot API Book</title>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="description" content="">
|
|
<meta name="generator" content="GitBook 3.2.3">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/style.css">
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/gitbook-plugin-insert-logo-link/plugin.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/gitbook-plugin-sunlight-highlighter/sunlight.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="styles/website.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<meta name="HandheldFriendly" content="true"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
|
|
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
|
|
|
|
|
|
<link rel="next" href="METHODS_EVENTS.html" />
|
|
|
|
|
|
<link rel="prev" href="METHODS_STORAGE.html" />
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div class="book">
|
|
<div class="book-summary">
|
|
|
|
|
|
<div id="book-search-input" role="search">
|
|
<input type="text" placeholder="Type to search" />
|
|
</div>
|
|
|
|
|
|
<nav role="navigation">
|
|
|
|
|
|
|
|
<ul class="summary">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="header">Packages</li>
|
|
|
|
|
|
|
|
<li class="chapter " data-level="1.1" data-path="./">
|
|
|
|
<a href="./">
|
|
|
|
|
|
Introduction
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.2" data-path="api/">
|
|
|
|
<a href="api/">
|
|
|
|
|
|
api
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="1.2.1" data-path="api/classes/_promise_index_.apipromise.html">
|
|
|
|
<a href="api/classes/_promise_index_.apipromise.html">
|
|
|
|
|
|
ApiPromise
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.2.2" data-path="api/classes/_rx_index_.apirx.html">
|
|
|
|
<a href="api/classes/_rx_index_.apirx.html">
|
|
|
|
|
|
ApiRx
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.3" data-path="rpc-provider/">
|
|
|
|
<a href="rpc-provider/">
|
|
|
|
|
|
rpc-provider
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="1.3.1" data-path="rpc-provider/classes/_http_index_.httpprovider.html">
|
|
|
|
<a href="rpc-provider/classes/_http_index_.httpprovider.html">
|
|
|
|
|
|
HttpProvider
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.3.2" data-path="rpc-provider/classes/_ws_index_.wsprovider.html">
|
|
|
|
<a href="rpc-provider/classes/_ws_index_.wsprovider.html">
|
|
|
|
|
|
WsProvider
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.4" data-path="types/">
|
|
|
|
<a href="types/">
|
|
|
|
|
|
types (codec implementation)
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="header">Interfaces</li>
|
|
|
|
|
|
|
|
<li class="chapter " data-level="2.1" data-path="METHODS_RPC.html">
|
|
|
|
<a href="METHODS_RPC.html">
|
|
|
|
|
|
RPC
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="2.2" data-path="METHODS_STORAGE.html">
|
|
|
|
<a href="METHODS_STORAGE.html">
|
|
|
|
|
|
Chain state (runtime)
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter active" data-level="2.3" data-path="METHODS_EXTRINSICS.html">
|
|
|
|
<a href="METHODS_EXTRINSICS.html">
|
|
|
|
|
|
Extrinsics (runtime)
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="2.4" data-path="METHODS_EVENTS.html">
|
|
|
|
<a href="METHODS_EVENTS.html">
|
|
|
|
|
|
Events (runtime)
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="header">Examples</li>
|
|
|
|
|
|
|
|
<li class="chapter " data-level="3.1" data-path="examples/promise/">
|
|
|
|
<a href="examples/promise/">
|
|
|
|
|
|
ApiPromise
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="3.1.1" data-path="examples/promise/01_simple_connect/">
|
|
|
|
<a href="examples/promise/01_simple_connect/">
|
|
|
|
|
|
Simple connect
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.2" data-path="examples/promise/02_listen_to_blocks/">
|
|
|
|
<a href="examples/promise/02_listen_to_blocks/">
|
|
|
|
|
|
Listen to blocks
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.3" data-path="examples/promise/03_listen_to_balance_change/">
|
|
|
|
<a href="examples/promise/03_listen_to_balance_change/">
|
|
|
|
|
|
Listen to balance change
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.4" data-path="examples/promise/04_unsubscribe/">
|
|
|
|
<a href="examples/promise/04_unsubscribe/">
|
|
|
|
|
|
Unsubscribe from listening
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.5" data-path="examples/promise/05_read_storage/">
|
|
|
|
<a href="examples/promise/05_read_storage/">
|
|
|
|
|
|
Read chain state
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.6" data-path="examples/promise/06_make_transfer/">
|
|
|
|
<a href="examples/promise/06_make_transfer/">
|
|
|
|
|
|
Make a transfer
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.7" data-path="examples/promise/08_system_events/">
|
|
|
|
<a href="examples/promise/08_system_events/">
|
|
|
|
|
|
Display system events
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.8" data-path="examples/promise/09_transfer_events/">
|
|
|
|
<a href="examples/promise/09_transfer_events/">
|
|
|
|
|
|
Transaction with events
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.1.9" data-path="examples/promise/10_upgrade_chain/">
|
|
|
|
<a href="examples/promise/10_upgrade_chain/">
|
|
|
|
|
|
Upgrade via sudo
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2" data-path="examples/rx/">
|
|
|
|
<a href="examples/rx/">
|
|
|
|
|
|
ApiRx
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="3.2.1" data-path="examples/rx/01_simple_connect/">
|
|
|
|
<a href="examples/rx/01_simple_connect/">
|
|
|
|
|
|
Simple connect
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.2" data-path="examples/rx/02_listen_to_blocks/">
|
|
|
|
<a href="examples/rx/02_listen_to_blocks/">
|
|
|
|
|
|
Listen to blocks
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.3" data-path="examples/rx/03_listen_to_balance_change/">
|
|
|
|
<a href="examples/rx/03_listen_to_balance_change/">
|
|
|
|
|
|
Listen to balance change
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.4" data-path="examples/rx/04_unsubscribe/">
|
|
|
|
<a href="examples/rx/04_unsubscribe/">
|
|
|
|
|
|
Unsubscribe from listening
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.5" data-path="examples/rx/05_read_storage/">
|
|
|
|
<a href="examples/rx/05_read_storage/">
|
|
|
|
|
|
Read chain state
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.6" data-path="examples/rx/06_make_transfer/">
|
|
|
|
<a href="examples/rx/06_make_transfer/">
|
|
|
|
|
|
Make a transfer
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.7" data-path="examples/rx/08_system_events/">
|
|
|
|
<a href="examples/rx/08_system_events/">
|
|
|
|
|
|
Display system events
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.8" data-path="examples/rx/09_transfer_events/">
|
|
|
|
<a href="examples/rx/09_transfer_events/">
|
|
|
|
|
|
Transaction with events
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="3.2.9" data-path="examples/rx/10_upgrade_chain/">
|
|
|
|
<a href="examples/rx/10_upgrade_chain/">
|
|
|
|
|
|
Upgrade via sudo
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|
|
|
|
<li class="chapter " data-level="4.1" data-path="types/classes/_accountid_.accountid.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.2" data-path="types/classes/_accountindex_.accountindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.3" data-path="types/classes/_address_.address.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.4" data-path="types/classes/_authorityid_.authorityid.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.5" data-path="types/classes/_balance_.balance.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.6" data-path="types/classes/_bft_.bftauthoritysignature.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.7" data-path="types/classes/_bft_.bfthashsignature.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.8" data-path="types/classes/_block_.block.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.9" data-path="types/classes/_blocknumber_.blocknumber.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.10" data-path="types/classes/_bool_.bool.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.11" data-path="types/classes/_bytes_.bytes.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.12" data-path="types/classes/_chainproperties_.chainproperties.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.13" data-path="types/classes/_codec_base_.base.html">
|
|
|
|
<a href="types/classes/_codec_base_.base.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.14" data-path="types/classes/_codec_compact_.compact.html">
|
|
|
|
<a href="types/classes/_codec_compact_.compact.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.15" data-path="types/classes/_codec_enum_.enum.html">
|
|
|
|
<a href="types/classes/_codec_enum_.enum.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.16" data-path="types/classes/_codec_enumtype_.enumtype.html">
|
|
|
|
<a href="types/classes/_codec_enumtype_.enumtype.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.17" data-path="types/classes/_codec_option_.option.html">
|
|
|
|
<a href="types/classes/_codec_option_.option.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.18" data-path="types/classes/_codec_set_.set.html">
|
|
|
|
<a href="types/classes/_codec_set_.set.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.19" data-path="types/classes/_codec_struct_.struct.html">
|
|
|
|
<a href="types/classes/_codec_struct_.struct.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.20" data-path="types/classes/_codec_tuple_.tuple.html">
|
|
|
|
<a href="types/classes/_codec_tuple_.tuple.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.21" data-path="types/classes/_codec_typeregistry_.typeregistry.html">
|
|
|
|
<a href="types/classes/_codec_typeregistry_.typeregistry.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.22" data-path="types/classes/_codec_u8a_.u8a.html">
|
|
|
|
<a href="types/classes/_codec_u8a_.u8a.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.23" data-path="types/classes/_codec_u8afixed_.u8afixed.html">
|
|
|
|
<a href="types/classes/_codec_u8afixed_.u8afixed.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.24" data-path="types/classes/_codec_uint_.uint.html">
|
|
|
|
<a href="types/classes/_codec_uint_.uint.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.25" data-path="types/classes/_codec_vector_.vector.html">
|
|
|
|
<a href="types/classes/_codec_vector_.vector.html">
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.26" data-path="types/classes/_data_.data.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.27" data-path="types/classes/_digest_.authoritieschange.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.28" data-path="types/classes/_digest_.changestrieroot.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.29" data-path="types/classes/_digest_.digest.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.30" data-path="types/classes/_digest_.digestitem.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.31" data-path="types/classes/_digest_.other.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.32" data-path="types/classes/_digest_.seal.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.33" data-path="types/classes/_event_.event.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.34" data-path="types/classes/_event_.eventdata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.35" data-path="types/classes/_event_.eventindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.36" data-path="types/classes/_eventrecord_.applyextrinsic.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.37" data-path="types/classes/_eventrecord_.eventrecord.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.38" data-path="types/classes/_eventrecord_.finalization.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.39" data-path="types/classes/_eventrecord_.phase.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.40" data-path="types/classes/_extrinsic_.extrinsic.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.41" data-path="types/classes/_extrinsicera_.extrinsicera.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.42" data-path="types/classes/_extrinsics_.extrinsics.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.43" data-path="types/classes/_extrinsicsignature_.extrinsicsignature.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.44" data-path="types/classes/_extrinsicstatus_.broadcast.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.45" data-path="types/classes/_extrinsicstatus_.dropped.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.46" data-path="types/classes/_extrinsicstatus_.extrinsicstatus.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.47" data-path="types/classes/_extrinsicstatus_.finalised.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.48" data-path="types/classes/_extrinsicstatus_.usurped.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.49" data-path="types/classes/_gas_.gas.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.50" data-path="types/classes/_h256_.h256.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.51" data-path="types/classes/_h512_.h512.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.52" data-path="types/classes/_hash_.hash.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.53" data-path="types/classes/_header_.header.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.54" data-path="types/classes/_justification_.justification.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.55" data-path="types/classes/_justification_.rhdjustification.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.56" data-path="types/classes/_keyvalue_.keyvalue.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.57" data-path="types/classes/_keyvalue_.keyvalueoption.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.58" data-path="types/classes/_metadata_.callmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.59" data-path="types/classes/_metadata_.eventmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.60" data-path="types/classes/_metadata_.functionargumentmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.61" data-path="types/classes/_metadata_.functionmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.62" data-path="types/classes/_metadata_.modulemetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.63" data-path="types/classes/_metadata_.outerdispatchcall.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.64" data-path="types/classes/_metadata_.outerdispatchmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.65" data-path="types/classes/_metadata_.outereventmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.66" data-path="types/classes/_metadata_.outereventmetadataevent.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.67" data-path="types/classes/_metadata_.runtimemetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.68" data-path="types/classes/_metadata_.runtimemodulemetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.69" data-path="types/classes/_metadata_.storagefunctionmetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.70" data-path="types/classes/_metadata_.storagefunctionmodifier.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.71" data-path="types/classes/_metadata_.storagefunctiontype.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.72" data-path="types/classes/_metadata_.storagefunctiontype_map.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.73" data-path="types/classes/_metadata_.storagemetadata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.74" data-path="types/classes/_method_.method.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.75" data-path="types/classes/_method_.methodindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.76" data-path="types/classes/_misbehaviorreport_.bftatreport.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.77" data-path="types/classes/_misbehaviorreport_.bftdoublecommit.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.78" data-path="types/classes/_misbehaviorreport_.bftdoubleprepare.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.79" data-path="types/classes/_misbehaviorreport_.bftdoublepropose.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.80" data-path="types/classes/_misbehaviorreport_.bftproposeoutofturn.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.81" data-path="types/classes/_misbehaviorreport_.misbehaviorkind.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.82" data-path="types/classes/_misbehaviorreport_.misbehaviorreport.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.83" data-path="types/classes/_moment_.moment.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.84" data-path="types/classes/_newaccountoutcome_.newaccountoutcome.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.85" data-path="types/classes/_nonce_.nonce.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.86" data-path="types/classes/_null_.null.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.87" data-path="types/classes/_origin_.origin.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.88" data-path="types/classes/_parachainid_.parachainid.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.89" data-path="types/classes/_pendingextrinsics_.pendingextrinsics.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.90" data-path="types/classes/_perbill_.perbill.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.91" data-path="types/classes/_permill_.permill.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.92" data-path="types/classes/_propindex_.propindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.93" data-path="types/classes/_proposal_.proposal.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.94" data-path="types/classes/_proposalindex_.proposalindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.95" data-path="types/classes/_referendumindex_.referendumindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.96" data-path="types/classes/_runtimeversion_.apiid.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.97" data-path="types/classes/_runtimeversion_.runtimeversion.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.98" data-path="types/classes/_runtimeversion_.runtimeversionapi.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.99" data-path="types/classes/_sessionkey_.sessionkey.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.100" data-path="types/classes/_signature_.signature.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.101" data-path="types/classes/_signaturepayload_.signaturepayload.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.102" data-path="types/classes/_signedblock_.signedblock.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.103" data-path="types/classes/_storagechangeset_.storagechangeset.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.104" data-path="types/classes/_storagedata_.storagedata.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.105" data-path="types/classes/_storagekey_.storagekey.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.106" data-path="types/classes/_storedpendingchange_.nextauthority.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.107" data-path="types/classes/_storedpendingchange_.storedpendingchange.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.108" data-path="types/classes/_text_.text.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.109" data-path="types/classes/_type_.type.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.110" data-path="types/classes/_u128_.u128.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.111" data-path="types/classes/_u16_.u16.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.112" data-path="types/classes/_u256_.u256.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.113" data-path="types/classes/_u32_.u32.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.114" data-path="types/classes/_u64_.u64.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.115" data-path="types/classes/_u8_.u8.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.116" data-path="types/classes/_validatorprefs_.validatorprefs.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.117" data-path="types/classes/_voteindex_.voteindex.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="4.118" data-path="types/classes/_votethreshold_.votethreshold.md">
|
|
|
|
<span>
|
|
|
|
|
|
hidden
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li>
|
|
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
|
|
Published with GitBook
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="book-body">
|
|
|
|
<div class="body-inner">
|
|
|
|
|
|
|
|
<div class="book-header" role="navigation">
|
|
|
|
|
|
<!-- Title -->
|
|
<h1>
|
|
<i class="fa fa-circle-o-notch fa-spin"></i>
|
|
<a href="." >Extrinsics (runtime)</a>
|
|
</h1>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="page-wrapper" tabindex="-1" role="main">
|
|
<div class="page-inner">
|
|
|
|
<div id="book-search-results">
|
|
<div class="search-noresults">
|
|
|
|
<section class="normal markdown-section">
|
|
|
|
<h2 id="extrinsics"><a id="top" style="text-decoration: none;">Extrinsics</a></h2>
|
|
<p><em>The following sections contain Extrinsics methods are part of the default Substrate runtime.</em></p>
|
|
<ul>
|
|
<li><p><strong><a href="#balances">balances</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#consensus">consensus</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#contract">contract</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#council">council</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#councilMotions">councilMotions</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#councilVoting">councilVoting</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#democracy">democracy</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#grandpa">grandpa</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#session">session</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#staking">staking</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#sudo">sudo</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#timestamp">timestamp</a></strong></p>
|
|
</li>
|
|
<li><p><strong><a href="#treasury">treasury</a></strong></p>
|
|
</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="balances"><a id="balances"></a>balances</h3>
|
|
<p>▸ <strong>setBalance</strong>(who: <code>Address</code>, free: <code>Compact<Balance></code>, reserved: <code>Compact<Balance></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the balances of a given account.</li>
|
|
</ul>
|
|
<p>▸ <strong>transfer</strong>(dest: <code>Address</code>, value: <code>Compact<Balance></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Transfer some liquid free balance to another staker.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="consensus"><a id="consensus"></a>consensus</h3>
|
|
<p>▸ <strong>noteOffline</strong>(offline: <code>InherentOfflineReport</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Note the previous block's validator missed their opportunity to propose a block.</li>
|
|
</ul>
|
|
<p>▸ <strong>remark</strong>(_remark: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Make some on-chain remark.</li>
|
|
</ul>
|
|
<p>▸ <strong>reportMisbehavior</strong>(_report: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Report some misbehaviour.</li>
|
|
</ul>
|
|
<p>▸ <strong>setCode</strong>(new: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the new code.</li>
|
|
</ul>
|
|
<p>▸ <strong>setHeapPages</strong>(pages: <code>u64</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the number of pages in the WebAssembly environment's heap.</li>
|
|
</ul>
|
|
<p>▸ <strong>setStorage</strong>(items: <code>Vec<KeyValue></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set some items of storage.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="contract"><a id="contract"></a>contract</h3>
|
|
<p>▸ <strong>call</strong>(dest: <code>Address</code>, value: <code>Compact<Balance></code>, gas_limit: <code>Compact<Gas></code>, data: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Make a call to a specified account, optionally transferring some balance.</li>
|
|
</ul>
|
|
<p>▸ <strong>create</strong>(endowment: <code>Compact<Balance></code>, gas_limit: <code>Compact<Gas></code>, code_hash: <code>CodeHash</code>, data: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Create a new contract, optionally transfering some balance to the created account. Creation is executed as follows: - the destination address is computed based on the sender and hash of the code. - account is created at the computed address. - the <code>ctor_code</code> is executed in the context of the newly created account. Buffer returned after the execution is saved as the <code>code</code> of the account. That code will be invoked upon any message received by this account.</li>
|
|
</ul>
|
|
<p>▸ <strong>putCode</strong>(gas_limit: <code>Compact<Gas></code>, code: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Stores code in the storage. You can instantiate contracts only with stored code.</li>
|
|
</ul>
|
|
<p>▸ <strong>updateSchedule</strong>(schedule: <code>Schedule</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Updates the schedule for metering contracts. The schedule must have a greater version than the stored schedule.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="council"><a id="council"></a>council</h3>
|
|
<p>▸ <strong>presentWinner</strong>(candidate: <code>Address</code>, total: <code>Compact<BalanceOf></code>, index: <code>Compact<VoteIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Claim that <code>signed</code> is one of the top Self::carry_count() + current_vote().1 candidates. Only works if the <code>block_number >= current_vote().0</code> and <code>< current_vote().0 + presentation_duration()`` </code>signed` should have at least</li>
|
|
</ul>
|
|
<p>▸ <strong>reapInactiveVoter</strong>(reporter_index: <code>Compact<u32></code>, who: <code>Address</code>, who_index: <code>Compact<u32></code>, assumed_vote_index: <code>Compact<VoteIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices must now be either unregistered or registered to a candidate that registered the slot after the voter gave their last approval set. May be called by anyone. Returns the voter deposit to <code>signed</code>.</li>
|
|
</ul>
|
|
<p>▸ <strong>removeMember</strong>(who: <code>Address</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Remove a particular member. A tally will happen instantly (if not already in a presentation period) to fill the seat if removal means that the desired members are not met. This is effective immediately.</li>
|
|
</ul>
|
|
<p>▸ <strong>retractVoter</strong>(index: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Remove a voter. All votes are cancelled and the voter deposit is returned.</li>
|
|
</ul>
|
|
<p>▸ <strong>setApprovals</strong>(votes: <code>Vec<bool></code>, index: <code>Compact<VoteIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set candidate approvals. Approval slots stay valid as long as candidates in those slots are registered.</li>
|
|
</ul>
|
|
<p>▸ <strong>setDesiredSeats</strong>(count: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the desired member count; if lower than the current count, then seats will not be up election when they expire. If more, then a new vote will be started if one is not already in progress.</li>
|
|
</ul>
|
|
<p>▸ <strong>setPresentationDuration</strong>(count: <code>Compact<BlockNumber></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the presentation duration. If there is currently a vote being presented for, will invoke <code>finalise_vote</code>.</li>
|
|
</ul>
|
|
<p>▸ <strong>setTermDuration</strong>(count: <code>Compact<BlockNumber></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the presentation duration. If there is current a vote being presented for, will invoke <code>finalise_vote</code>.</li>
|
|
</ul>
|
|
<p>▸ <strong>submitCandidacy</strong>(slot: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Submit oneself for candidacy. Account must have enough transferrable funds in it to pay the bond.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="councilmotions"><a id="councilMotions"></a>councilMotions</h3>
|
|
<p>▸ <strong>propose</strong>(threshold: <code>Compact<u32></code>, proposal: <code>Proposal</code>)</p>
|
|
<p>▸ <strong>vote</strong>(proposal: <code>Hash</code>, index: <code>Compact<ProposalIndex></code>, approve: <code>bool</code>)</p>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="councilvoting"><a id="councilVoting"></a>councilVoting</h3>
|
|
<p>▸ <strong>propose</strong>(proposal: <code>Proposal</code>)</p>
|
|
<p>▸ <strong>setCooloffPeriod</strong>(blocks: <code>Compact<BlockNumber></code>)</p>
|
|
<p>▸ <strong>setVotingPeriod</strong>(blocks: <code>Compact<BlockNumber></code>)</p>
|
|
<p>▸ <strong>veto</strong>(proposal_hash: <code>Hash</code>)</p>
|
|
<p>▸ <strong>vote</strong>(proposal: <code>Hash</code>, approve: <code>bool</code>)</p>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="democracy"><a id="democracy"></a>democracy</h3>
|
|
<p>▸ <strong>cancelQueued</strong>(when: <code>Compact<BlockNumber></code>, which: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Cancel a proposal queued for enactment.</li>
|
|
</ul>
|
|
<p>▸ <strong>cancelReferendum</strong>(ref_index: <code>Compact<ReferendumIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Remove a referendum.</li>
|
|
</ul>
|
|
<p>▸ <strong>propose</strong>(proposal: <code>Proposal</code>, value: <code>Compact<BalanceOf></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Propose a sensitive action to be taken.</li>
|
|
</ul>
|
|
<p>▸ <strong>second</strong>(proposal: <code>Compact<PropIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Propose a sensitive action to be taken.</li>
|
|
</ul>
|
|
<p>▸ <strong>startReferendum</strong>(proposal: <code>Proposal</code>, threshold: <code>VoteThreshold</code>, delay: <code>BlockNumber</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Start a referendum.</li>
|
|
</ul>
|
|
<p>▸ <strong>vote</strong>(ref_index: <code>Compact<ReferendumIndex></code>, vote: <code>Vote</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Vote in a referendum. If <code>vote.is_aye()</code>, the vote is to enact the proposal; otherwise it is a vote to keep the status quo.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="grandpa"><a id="grandpa"></a>grandpa</h3>
|
|
<p>▸ <strong>reportMisbehavior</strong>(_report: <code>Bytes</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Report some misbehaviour.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="session"><a id="session"></a>session</h3>
|
|
<p>▸ <strong>forceNewSession</strong>(apply_rewards: <code>bool</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Forces a new session.</li>
|
|
</ul>
|
|
<p>▸ <strong>setKey</strong>(key: <code>SessionKey</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Sets the session key of <code>_validator</code> to <code>_key</code>. This doesn't take effect until the next session.</li>
|
|
</ul>
|
|
<p>▸ <strong>setLength</strong>(new: <code>Compact<BlockNumber></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set a new session length. Won't kick in until the next session change (at current length).</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="staking"><a id="staking"></a>staking</h3>
|
|
<p>▸ <strong>forceNewEra</strong>(apply_rewards: <code>bool</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Force there to be a new era. This also forces a new session immediately after. <code>apply_rewards</code> should be true for validators to get the session reward.</li>
|
|
</ul>
|
|
<p>▸ <strong>nominate</strong>(target: <code>Address</code>)</p>
|
|
<p>▸ <strong>registerPreferences</strong>(intentions_index: <code>Compact<u32></code>, prefs: <code>ValidatorPrefs</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the given account's preference for slashing behaviour should they be a validator. An error (no-op) if <code>Self::intentions()[intentions_index] != origin</code>.</li>
|
|
</ul>
|
|
<p>▸ <strong>setBondingDuration</strong>(new: <code>Compact<BlockNumber></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: The length of the bonding duration in eras.</li>
|
|
</ul>
|
|
<p>▸ <strong>setInvulnerables</strong>(validators: <code>Vec<AccountId></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the validators who cannot be slashed (if any).</li>
|
|
</ul>
|
|
<p>▸ <strong>setOfflineSlashGrace</strong>(new: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the offline slash grace period.</li>
|
|
</ul>
|
|
<p>▸ <strong>setSessionsPerEra</strong>(new: <code>Compact<BlockNumber></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the number of sessions in an era.</li>
|
|
</ul>
|
|
<p>▸ <strong>setValidatorCount</strong>(new: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: The ideal number of validators.</li>
|
|
</ul>
|
|
<p>▸ <strong>stake</strong>()</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Declare the desire to stake for the transactor. Effects will be felt at the beginning of the next era.</li>
|
|
</ul>
|
|
<p>▸ <strong>unnominate</strong>(target_index: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Will panic if called when source isn't currently nominating target. Updates Nominating, NominatorsFor and NominationBalance.</li>
|
|
</ul>
|
|
<p>▸ <strong>unstake</strong>(intentions_index: <code>Compact<u32></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Retract the desire to stake for the transactor. Effects will be felt at the beginning of the next era.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="sudo"><a id="sudo"></a>sudo</h3>
|
|
<p>▸ <strong>setKey</strong>(new: <code>Address</code>)</p>
|
|
<p>▸ <strong>sudo</strong>(proposal: <code>Proposal</code>)</p>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="timestamp"><a id="timestamp"></a>timestamp</h3>
|
|
<p>▸ <strong>set</strong>(now: <code>Compact<Moment></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the current time. Extrinsic with this call should be placed at the specific position in the each block (specified by the Trait::TIMESTAMP_SET_POSITION) typically at the start of the each block. This call should be invoked exactly once per block. It will panic at the finalization phase, if this call hasn't been invoked by that time. The timestamp should be greater than the previous one by the amount specified by <code>block_period</code>.</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
|
<h3 id="treasury"><a id="treasury"></a>treasury</h3>
|
|
<p>▸ <strong>approveProposal</strong>(proposal_id: <code>Compact<ProposalIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Approve a proposal. At a later time, the proposal will be allocated to the beneficiary and the original deposit will be returned.</li>
|
|
</ul>
|
|
<p>▸ <strong>configure</strong>(proposal_bond: <code>Compact<Permill></code>, proposal_bond_minimum: <code>Compact<BalanceOf></code>, spend_period: <code>Compact<BlockNumber></code>, burn: <code>Compact<Permill></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: (Re-)configure this module.</li>
|
|
</ul>
|
|
<p>▸ <strong>proposeSpend</strong>(value: <code>Compact<BalanceOf></code>, beneficiary: <code>Address</code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Put forward a suggestion for spending. A deposit proportional to the value is reserved and slashed if the proposal is rejected. It is returned once the proposal is awarded.</li>
|
|
</ul>
|
|
<p>▸ <strong>rejectProposal</strong>(proposal_id: <code>Compact<ProposalIndex></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Reject a proposed spend. The original deposit will be slashed.</li>
|
|
</ul>
|
|
<p>▸ <strong>setPot</strong>(new_pot: <code>Compact<BalanceOf></code>)</p>
|
|
<ul>
|
|
<li><strong>summary</strong>: Set the balance of funds available to spend.</li>
|
|
</ul>
|
|
|
|
|
|
</section>
|
|
|
|
</div>
|
|
<div class="search-results">
|
|
<div class="has-results">
|
|
|
|
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
|
<ul class="search-results-list"></ul>
|
|
|
|
</div>
|
|
<div class="no-results">
|
|
|
|
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="METHODS_STORAGE.html" class="navigation navigation-prev " aria-label="Previous page: Chain state (runtime)">
|
|
<i class="fa fa-angle-left"></i>
|
|
</a>
|
|
|
|
|
|
<a href="METHODS_EVENTS.html" class="navigation navigation-next " aria-label="Next page: Events (runtime)">
|
|
<i class="fa fa-angle-right"></i>
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var gitbook = gitbook || [];
|
|
gitbook.push(function() {
|
|
gitbook.page.hasChanged({"page":{"title":"Extrinsics (runtime)","level":"2.3","depth":1,"next":{"title":"Events (runtime)","level":"2.4","depth":1,"path":"METHODS_EVENTS.md","ref":"METHODS_EVENTS.md","articles":[]},"previous":{"title":"Chain state (runtime)","level":"2.2","depth":1,"path":"METHODS_STORAGE.md","ref":"METHODS_STORAGE.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"METHODS_EXTRINSICS.md","mtime":"2019-02-19T16:50:14.002Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-19T16:52:09.153Z"},"basePath":".","book":{"language":""}});
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook.js"></script>
|
|
<script src="gitbook/theme.js"></script>
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-insert-logo-link/plugin.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-search/search.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
|
|
|
|
|
|
|
<script src="gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
|
|
|
</body>
|
|
</html>
|
|
|