forked from RioDefi/rio.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHANGELOG.html
66 lines (58 loc) · 98.5 KB
/
CHANGELOG.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>1.7.0-beta.x | polkadot-js/api</title>
<meta name="description" content="API libraries and interfaces for communicating with Polkadot and Substrate nodes">
<meta name="generator" content="VuePress 1.3.1">
<link rel="preload" href="/api/assets/css/0.styles.b5903717.css" as="style"><link rel="preload" href="/api/assets/js/app.c336d2d3.js" as="script"><link rel="preload" href="/api/assets/js/2.87a850f8.js" as="script"><link rel="preload" href="/api/assets/js/5.3d73fded.js" as="script"><link rel="prefetch" href="/api/assets/js/10.49a37879.js"><link rel="prefetch" href="/api/assets/js/100.68f3b14a.js"><link rel="prefetch" href="/api/assets/js/101.fac9cb22.js"><link rel="prefetch" href="/api/assets/js/102.01c9d6d4.js"><link rel="prefetch" href="/api/assets/js/103.a298dbb7.js"><link rel="prefetch" href="/api/assets/js/104.1f6dd9e2.js"><link rel="prefetch" href="/api/assets/js/105.56c92f89.js"><link rel="prefetch" href="/api/assets/js/106.f3938cb9.js"><link rel="prefetch" href="/api/assets/js/107.f57edc93.js"><link rel="prefetch" href="/api/assets/js/108.d425e90b.js"><link rel="prefetch" href="/api/assets/js/109.6cb59952.js"><link rel="prefetch" href="/api/assets/js/11.e817a64b.js"><link rel="prefetch" href="/api/assets/js/110.f0043847.js"><link rel="prefetch" href="/api/assets/js/111.b7117558.js"><link rel="prefetch" href="/api/assets/js/112.b12c624a.js"><link rel="prefetch" href="/api/assets/js/113.a9ff17b8.js"><link rel="prefetch" href="/api/assets/js/114.6a3e4267.js"><link rel="prefetch" href="/api/assets/js/115.1d6f8b28.js"><link rel="prefetch" href="/api/assets/js/116.dfdeee76.js"><link rel="prefetch" href="/api/assets/js/117.f5035751.js"><link rel="prefetch" href="/api/assets/js/118.3e64ae10.js"><link rel="prefetch" href="/api/assets/js/119.11e830fc.js"><link rel="prefetch" href="/api/assets/js/12.a9abd259.js"><link rel="prefetch" href="/api/assets/js/120.5ec1eec8.js"><link rel="prefetch" href="/api/assets/js/121.7a915d51.js"><link rel="prefetch" href="/api/assets/js/122.ed3c3352.js"><link rel="prefetch" href="/api/assets/js/123.3ddce6af.js"><link rel="prefetch" href="/api/assets/js/124.c3f7852d.js"><link rel="prefetch" href="/api/assets/js/125.0644becb.js"><link rel="prefetch" href="/api/assets/js/126.99a744d6.js"><link rel="prefetch" href="/api/assets/js/127.d3ed8a29.js"><link rel="prefetch" href="/api/assets/js/128.284eac2e.js"><link rel="prefetch" href="/api/assets/js/129.ee0d7316.js"><link rel="prefetch" href="/api/assets/js/13.9d664cb5.js"><link rel="prefetch" href="/api/assets/js/130.4f6db5d4.js"><link rel="prefetch" href="/api/assets/js/131.be570cb6.js"><link rel="prefetch" href="/api/assets/js/132.7a86e49d.js"><link rel="prefetch" href="/api/assets/js/133.7eb6ceab.js"><link rel="prefetch" href="/api/assets/js/134.ab6e0381.js"><link rel="prefetch" href="/api/assets/js/135.3e314a6a.js"><link rel="prefetch" href="/api/assets/js/136.68bdef72.js"><link rel="prefetch" href="/api/assets/js/137.1d97be2b.js"><link rel="prefetch" href="/api/assets/js/138.5921d0dc.js"><link rel="prefetch" href="/api/assets/js/139.02a94f46.js"><link rel="prefetch" href="/api/assets/js/14.88cae821.js"><link rel="prefetch" href="/api/assets/js/140.8ee9b9f1.js"><link rel="prefetch" href="/api/assets/js/141.8593ab85.js"><link rel="prefetch" href="/api/assets/js/142.995f9ee3.js"><link rel="prefetch" href="/api/assets/js/143.ed53c614.js"><link rel="prefetch" href="/api/assets/js/144.6edb5313.js"><link rel="prefetch" href="/api/assets/js/145.cf087d33.js"><link rel="prefetch" href="/api/assets/js/146.d05c5b75.js"><link rel="prefetch" href="/api/assets/js/147.c6c1cdb1.js"><link rel="prefetch" href="/api/assets/js/148.86d36bfb.js"><link rel="prefetch" href="/api/assets/js/149.81468a9e.js"><link rel="prefetch" href="/api/assets/js/15.ac34671c.js"><link rel="prefetch" href="/api/assets/js/150.6231db7e.js"><link rel="prefetch" href="/api/assets/js/151.d4a0bb35.js"><link rel="prefetch" href="/api/assets/js/152.07b713a9.js"><link rel="prefetch" href="/api/assets/js/153.7f2d2bd4.js"><link rel="prefetch" href="/api/assets/js/154.608c9c2e.js"><link rel="prefetch" href="/api/assets/js/155.c7333615.js"><link rel="prefetch" href="/api/assets/js/156.2ba2f169.js"><link rel="prefetch" href="/api/assets/js/157.437b909d.js"><link rel="prefetch" href="/api/assets/js/158.72585887.js"><link rel="prefetch" href="/api/assets/js/159.45bd18e3.js"><link rel="prefetch" href="/api/assets/js/16.d75763ba.js"><link rel="prefetch" href="/api/assets/js/160.2181d087.js"><link rel="prefetch" href="/api/assets/js/161.da17d542.js"><link rel="prefetch" href="/api/assets/js/162.9aefaa5f.js"><link rel="prefetch" href="/api/assets/js/163.6f4298eb.js"><link rel="prefetch" href="/api/assets/js/164.00218ea0.js"><link rel="prefetch" href="/api/assets/js/165.7dd6a67d.js"><link rel="prefetch" href="/api/assets/js/166.4591aacf.js"><link rel="prefetch" href="/api/assets/js/167.afb2faee.js"><link rel="prefetch" href="/api/assets/js/168.829730ff.js"><link rel="prefetch" href="/api/assets/js/169.7bd79086.js"><link rel="prefetch" href="/api/assets/js/17.61cad03a.js"><link rel="prefetch" href="/api/assets/js/170.e68e2a6b.js"><link rel="prefetch" href="/api/assets/js/171.7c60522e.js"><link rel="prefetch" href="/api/assets/js/172.44d46662.js"><link rel="prefetch" href="/api/assets/js/173.4e4020d2.js"><link rel="prefetch" href="/api/assets/js/174.a36ae735.js"><link rel="prefetch" href="/api/assets/js/175.3964e966.js"><link rel="prefetch" href="/api/assets/js/176.374296ef.js"><link rel="prefetch" href="/api/assets/js/177.1931acfd.js"><link rel="prefetch" href="/api/assets/js/178.d786ba2f.js"><link rel="prefetch" href="/api/assets/js/179.c6d7fb1c.js"><link rel="prefetch" href="/api/assets/js/18.b712c085.js"><link rel="prefetch" href="/api/assets/js/180.a3fb6da8.js"><link rel="prefetch" href="/api/assets/js/181.d8df22e3.js"><link rel="prefetch" href="/api/assets/js/182.ddc8913c.js"><link rel="prefetch" href="/api/assets/js/183.95492b34.js"><link rel="prefetch" href="/api/assets/js/184.8fc9f779.js"><link rel="prefetch" href="/api/assets/js/185.29787360.js"><link rel="prefetch" href="/api/assets/js/186.401ef368.js"><link rel="prefetch" href="/api/assets/js/187.c655cbf7.js"><link rel="prefetch" href="/api/assets/js/188.d71409e7.js"><link rel="prefetch" href="/api/assets/js/189.5be8ad53.js"><link rel="prefetch" href="/api/assets/js/19.212a0a03.js"><link rel="prefetch" href="/api/assets/js/190.7fa4cd15.js"><link rel="prefetch" href="/api/assets/js/191.7501ffc0.js"><link rel="prefetch" href="/api/assets/js/192.760d0387.js"><link rel="prefetch" href="/api/assets/js/193.ca07a787.js"><link rel="prefetch" href="/api/assets/js/194.3feaba4b.js"><link rel="prefetch" href="/api/assets/js/195.aeb4b401.js"><link rel="prefetch" href="/api/assets/js/196.ec874f61.js"><link rel="prefetch" href="/api/assets/js/197.23315a44.js"><link rel="prefetch" href="/api/assets/js/198.70c541b5.js"><link rel="prefetch" href="/api/assets/js/199.902e0165.js"><link rel="prefetch" href="/api/assets/js/20.f3693765.js"><link rel="prefetch" href="/api/assets/js/200.3772a54e.js"><link rel="prefetch" href="/api/assets/js/201.dc4cb724.js"><link rel="prefetch" href="/api/assets/js/202.7a1b7708.js"><link rel="prefetch" href="/api/assets/js/203.4e5e5aa7.js"><link rel="prefetch" href="/api/assets/js/204.4906ea59.js"><link rel="prefetch" href="/api/assets/js/205.5dc2e4e1.js"><link rel="prefetch" href="/api/assets/js/206.c23a0cdb.js"><link rel="prefetch" href="/api/assets/js/207.f0264278.js"><link rel="prefetch" href="/api/assets/js/208.90895ef7.js"><link rel="prefetch" href="/api/assets/js/209.66a317af.js"><link rel="prefetch" href="/api/assets/js/21.23017e59.js"><link rel="prefetch" href="/api/assets/js/210.bbb21cf6.js"><link rel="prefetch" href="/api/assets/js/211.7ad1daee.js"><link rel="prefetch" href="/api/assets/js/212.9467aef2.js"><link rel="prefetch" href="/api/assets/js/213.8d1e6063.js"><link rel="prefetch" href="/api/assets/js/214.13019a28.js"><link rel="prefetch" href="/api/assets/js/215.ca487b0f.js"><link rel="prefetch" href="/api/assets/js/216.c135d337.js"><link rel="prefetch" href="/api/assets/js/217.09402166.js"><link rel="prefetch" href="/api/assets/js/218.5d921510.js"><link rel="prefetch" href="/api/assets/js/219.ef8c1bcf.js"><link rel="prefetch" href="/api/assets/js/22.f6451702.js"><link rel="prefetch" href="/api/assets/js/220.6b865f28.js"><link rel="prefetch" href="/api/assets/js/221.1c5f0fe3.js"><link rel="prefetch" href="/api/assets/js/222.e94d92e8.js"><link rel="prefetch" href="/api/assets/js/223.f3550aac.js"><link rel="prefetch" href="/api/assets/js/224.8737bf8e.js"><link rel="prefetch" href="/api/assets/js/225.46793e01.js"><link rel="prefetch" href="/api/assets/js/226.aa739918.js"><link rel="prefetch" href="/api/assets/js/227.42b5acaf.js"><link rel="prefetch" href="/api/assets/js/228.d2ecb3b4.js"><link rel="prefetch" href="/api/assets/js/229.a9012a1a.js"><link rel="prefetch" href="/api/assets/js/23.c166727b.js"><link rel="prefetch" href="/api/assets/js/230.de7e33a7.js"><link rel="prefetch" href="/api/assets/js/231.b03e0505.js"><link rel="prefetch" href="/api/assets/js/232.3da1297c.js"><link rel="prefetch" href="/api/assets/js/233.41f2f1a5.js"><link rel="prefetch" href="/api/assets/js/234.f24d7981.js"><link rel="prefetch" href="/api/assets/js/235.74bfaffa.js"><link rel="prefetch" href="/api/assets/js/236.a161fdd3.js"><link rel="prefetch" href="/api/assets/js/237.27b88a02.js"><link rel="prefetch" href="/api/assets/js/238.1f82cfba.js"><link rel="prefetch" href="/api/assets/js/239.6c791719.js"><link rel="prefetch" href="/api/assets/js/24.15e39fac.js"><link rel="prefetch" href="/api/assets/js/240.b0bad72f.js"><link rel="prefetch" href="/api/assets/js/241.9b4ffe22.js"><link rel="prefetch" href="/api/assets/js/242.887669ce.js"><link rel="prefetch" href="/api/assets/js/243.04115998.js"><link rel="prefetch" href="/api/assets/js/244.1cb6ab27.js"><link rel="prefetch" href="/api/assets/js/245.2e8943bc.js"><link rel="prefetch" href="/api/assets/js/246.9292e598.js"><link rel="prefetch" href="/api/assets/js/247.91f9c234.js"><link rel="prefetch" href="/api/assets/js/248.35baf1d2.js"><link rel="prefetch" href="/api/assets/js/249.2f1307bf.js"><link rel="prefetch" href="/api/assets/js/25.0adc842d.js"><link rel="prefetch" href="/api/assets/js/250.ec48b135.js"><link rel="prefetch" href="/api/assets/js/251.b85c8f44.js"><link rel="prefetch" href="/api/assets/js/252.7ad3bba6.js"><link rel="prefetch" href="/api/assets/js/253.06740c8f.js"><link rel="prefetch" href="/api/assets/js/254.0a016c5d.js"><link rel="prefetch" href="/api/assets/js/255.87516147.js"><link rel="prefetch" href="/api/assets/js/256.6f7c9627.js"><link rel="prefetch" href="/api/assets/js/257.119c4651.js"><link rel="prefetch" href="/api/assets/js/258.0f2ffc95.js"><link rel="prefetch" href="/api/assets/js/259.bb70c842.js"><link rel="prefetch" href="/api/assets/js/26.565cf0af.js"><link rel="prefetch" href="/api/assets/js/260.35b5668b.js"><link rel="prefetch" href="/api/assets/js/261.95b5f9ac.js"><link rel="prefetch" href="/api/assets/js/262.787e52e4.js"><link rel="prefetch" href="/api/assets/js/263.13f8b372.js"><link rel="prefetch" href="/api/assets/js/264.59a5ab81.js"><link rel="prefetch" href="/api/assets/js/265.8ab07542.js"><link rel="prefetch" href="/api/assets/js/266.9e92b0b6.js"><link rel="prefetch" href="/api/assets/js/267.cddc7e97.js"><link rel="prefetch" href="/api/assets/js/268.8cd24840.js"><link rel="prefetch" href="/api/assets/js/269.2778ba7a.js"><link rel="prefetch" href="/api/assets/js/27.32fad144.js"><link rel="prefetch" href="/api/assets/js/270.c3d426a0.js"><link rel="prefetch" href="/api/assets/js/271.f37cafbc.js"><link rel="prefetch" href="/api/assets/js/272.9d1ff39a.js"><link rel="prefetch" href="/api/assets/js/273.c8236d15.js"><link rel="prefetch" href="/api/assets/js/274.0cf17ec3.js"><link rel="prefetch" href="/api/assets/js/275.5233910c.js"><link rel="prefetch" href="/api/assets/js/276.74a9acad.js"><link rel="prefetch" href="/api/assets/js/277.2686def0.js"><link rel="prefetch" href="/api/assets/js/278.a9295d72.js"><link rel="prefetch" href="/api/assets/js/279.9af2cc44.js"><link rel="prefetch" href="/api/assets/js/28.36979f69.js"><link rel="prefetch" href="/api/assets/js/280.3c9da04f.js"><link rel="prefetch" href="/api/assets/js/281.4dbecb6c.js"><link rel="prefetch" href="/api/assets/js/282.d4910ec7.js"><link rel="prefetch" href="/api/assets/js/283.574f6e5f.js"><link rel="prefetch" href="/api/assets/js/284.8176642e.js"><link rel="prefetch" href="/api/assets/js/285.9746b798.js"><link rel="prefetch" href="/api/assets/js/286.d216f497.js"><link rel="prefetch" href="/api/assets/js/287.397e333c.js"><link rel="prefetch" href="/api/assets/js/288.9e813302.js"><link rel="prefetch" href="/api/assets/js/289.89dec910.js"><link rel="prefetch" href="/api/assets/js/29.4c403abb.js"><link rel="prefetch" href="/api/assets/js/290.fbc29139.js"><link rel="prefetch" href="/api/assets/js/291.a7187c77.js"><link rel="prefetch" href="/api/assets/js/292.0842f863.js"><link rel="prefetch" href="/api/assets/js/293.0113ab41.js"><link rel="prefetch" href="/api/assets/js/294.4835397f.js"><link rel="prefetch" href="/api/assets/js/295.3a2fbc74.js"><link rel="prefetch" href="/api/assets/js/296.44136d0c.js"><link rel="prefetch" href="/api/assets/js/297.d16e7faa.js"><link rel="prefetch" href="/api/assets/js/298.0c8869db.js"><link rel="prefetch" href="/api/assets/js/299.902236df.js"><link rel="prefetch" href="/api/assets/js/3.32208a98.js"><link rel="prefetch" href="/api/assets/js/30.bda9a0fe.js"><link rel="prefetch" href="/api/assets/js/300.73a25259.js"><link rel="prefetch" href="/api/assets/js/301.a5e38236.js"><link rel="prefetch" href="/api/assets/js/302.d5b45931.js"><link rel="prefetch" href="/api/assets/js/303.7ce6306c.js"><link rel="prefetch" href="/api/assets/js/304.81162e09.js"><link rel="prefetch" href="/api/assets/js/305.1c3a3142.js"><link rel="prefetch" href="/api/assets/js/306.74eca283.js"><link rel="prefetch" href="/api/assets/js/307.498f7d37.js"><link rel="prefetch" href="/api/assets/js/308.e535d4aa.js"><link rel="prefetch" href="/api/assets/js/309.4e0c9482.js"><link rel="prefetch" href="/api/assets/js/31.f63f522c.js"><link rel="prefetch" href="/api/assets/js/310.2cb5bbd6.js"><link rel="prefetch" href="/api/assets/js/311.f963f836.js"><link rel="prefetch" href="/api/assets/js/312.a6792c1e.js"><link rel="prefetch" href="/api/assets/js/313.56660993.js"><link rel="prefetch" href="/api/assets/js/314.fc8b1848.js"><link rel="prefetch" href="/api/assets/js/315.748e30d5.js"><link rel="prefetch" href="/api/assets/js/316.f8b7f9b9.js"><link rel="prefetch" href="/api/assets/js/317.5e8da2c4.js"><link rel="prefetch" href="/api/assets/js/318.f9dd50c0.js"><link rel="prefetch" href="/api/assets/js/319.500cb8f6.js"><link rel="prefetch" href="/api/assets/js/32.cbbc3be2.js"><link rel="prefetch" href="/api/assets/js/320.75f88582.js"><link rel="prefetch" href="/api/assets/js/321.45c0e615.js"><link rel="prefetch" href="/api/assets/js/322.a97d3f6a.js"><link rel="prefetch" href="/api/assets/js/323.fd7b9cdb.js"><link rel="prefetch" href="/api/assets/js/324.200b73f1.js"><link rel="prefetch" href="/api/assets/js/325.5a947162.js"><link rel="prefetch" href="/api/assets/js/326.447c8e30.js"><link rel="prefetch" href="/api/assets/js/327.4138e967.js"><link rel="prefetch" href="/api/assets/js/328.05112672.js"><link rel="prefetch" href="/api/assets/js/329.d9fe2be6.js"><link rel="prefetch" href="/api/assets/js/33.ebddeb0e.js"><link rel="prefetch" href="/api/assets/js/330.b560b800.js"><link rel="prefetch" href="/api/assets/js/331.01965676.js"><link rel="prefetch" href="/api/assets/js/332.ad9b8b3f.js"><link rel="prefetch" href="/api/assets/js/333.d0e093f7.js"><link rel="prefetch" href="/api/assets/js/334.eca64ce0.js"><link rel="prefetch" href="/api/assets/js/335.b8b9a7be.js"><link rel="prefetch" href="/api/assets/js/336.0f29e669.js"><link rel="prefetch" href="/api/assets/js/337.a1fda70f.js"><link rel="prefetch" href="/api/assets/js/338.53cf4fd1.js"><link rel="prefetch" href="/api/assets/js/339.e87a3204.js"><link rel="prefetch" href="/api/assets/js/34.c88255f0.js"><link rel="prefetch" href="/api/assets/js/340.95661c56.js"><link rel="prefetch" href="/api/assets/js/341.2c499174.js"><link rel="prefetch" href="/api/assets/js/342.04593d4d.js"><link rel="prefetch" href="/api/assets/js/343.5190a75d.js"><link rel="prefetch" href="/api/assets/js/344.e9af5f33.js"><link rel="prefetch" href="/api/assets/js/345.8f76b055.js"><link rel="prefetch" href="/api/assets/js/346.004b5aa3.js"><link rel="prefetch" href="/api/assets/js/347.128a81d7.js"><link rel="prefetch" href="/api/assets/js/348.e3776418.js"><link rel="prefetch" href="/api/assets/js/349.0276983a.js"><link rel="prefetch" href="/api/assets/js/35.25b04dbc.js"><link rel="prefetch" href="/api/assets/js/350.34088e6a.js"><link rel="prefetch" href="/api/assets/js/351.3f6a5c66.js"><link rel="prefetch" href="/api/assets/js/352.72b3729e.js"><link rel="prefetch" href="/api/assets/js/353.0f74c270.js"><link rel="prefetch" href="/api/assets/js/354.ef06684c.js"><link rel="prefetch" href="/api/assets/js/355.86e69c66.js"><link rel="prefetch" href="/api/assets/js/356.69c87034.js"><link rel="prefetch" href="/api/assets/js/357.6a3aadd3.js"><link rel="prefetch" href="/api/assets/js/358.de2da8ab.js"><link rel="prefetch" href="/api/assets/js/359.8a2841f7.js"><link rel="prefetch" href="/api/assets/js/36.1c180d2d.js"><link rel="prefetch" href="/api/assets/js/360.fbb31ee6.js"><link rel="prefetch" href="/api/assets/js/361.5c651159.js"><link rel="prefetch" href="/api/assets/js/362.c8a49684.js"><link rel="prefetch" href="/api/assets/js/363.4fd72952.js"><link rel="prefetch" href="/api/assets/js/364.054c6915.js"><link rel="prefetch" href="/api/assets/js/365.079fc7c6.js"><link rel="prefetch" href="/api/assets/js/366.d8dd182a.js"><link rel="prefetch" href="/api/assets/js/367.1f27a2e9.js"><link rel="prefetch" href="/api/assets/js/368.1b220dfa.js"><link rel="prefetch" href="/api/assets/js/369.7e6c16d0.js"><link rel="prefetch" href="/api/assets/js/37.d43cde91.js"><link rel="prefetch" href="/api/assets/js/370.b5d36966.js"><link rel="prefetch" href="/api/assets/js/371.b605602c.js"><link rel="prefetch" href="/api/assets/js/372.d05dff70.js"><link rel="prefetch" href="/api/assets/js/373.65057b87.js"><link rel="prefetch" href="/api/assets/js/374.c8c68edc.js"><link rel="prefetch" href="/api/assets/js/375.6148a9d0.js"><link rel="prefetch" href="/api/assets/js/376.2828749f.js"><link rel="prefetch" href="/api/assets/js/377.2f9593bf.js"><link rel="prefetch" href="/api/assets/js/378.294cc225.js"><link rel="prefetch" href="/api/assets/js/379.539723b3.js"><link rel="prefetch" href="/api/assets/js/38.6dad8efa.js"><link rel="prefetch" href="/api/assets/js/380.175f6a10.js"><link rel="prefetch" href="/api/assets/js/381.6bc87211.js"><link rel="prefetch" href="/api/assets/js/382.ebaa1a97.js"><link rel="prefetch" href="/api/assets/js/383.293a19d8.js"><link rel="prefetch" href="/api/assets/js/384.3d9e2405.js"><link rel="prefetch" href="/api/assets/js/385.69e98c8e.js"><link rel="prefetch" href="/api/assets/js/386.e3c9f840.js"><link rel="prefetch" href="/api/assets/js/387.445f497d.js"><link rel="prefetch" href="/api/assets/js/388.1ff76226.js"><link rel="prefetch" href="/api/assets/js/389.bf22ed17.js"><link rel="prefetch" href="/api/assets/js/39.594b0591.js"><link rel="prefetch" href="/api/assets/js/390.1d8cf2c3.js"><link rel="prefetch" href="/api/assets/js/391.71f54725.js"><link rel="prefetch" href="/api/assets/js/392.f5f293fe.js"><link rel="prefetch" href="/api/assets/js/393.7288c6bb.js"><link rel="prefetch" href="/api/assets/js/394.92d12c3b.js"><link rel="prefetch" href="/api/assets/js/395.5a1a291b.js"><link rel="prefetch" href="/api/assets/js/396.f2108c4f.js"><link rel="prefetch" href="/api/assets/js/397.7a2af819.js"><link rel="prefetch" href="/api/assets/js/398.87c09375.js"><link rel="prefetch" href="/api/assets/js/399.cf95ccb2.js"><link rel="prefetch" href="/api/assets/js/4.cffed92c.js"><link rel="prefetch" href="/api/assets/js/40.a113249e.js"><link rel="prefetch" href="/api/assets/js/400.ed15239d.js"><link rel="prefetch" href="/api/assets/js/401.8e50df1d.js"><link rel="prefetch" href="/api/assets/js/402.344b881a.js"><link rel="prefetch" href="/api/assets/js/403.8e5191d9.js"><link rel="prefetch" href="/api/assets/js/404.1dc2c5e7.js"><link rel="prefetch" href="/api/assets/js/405.6ffd0806.js"><link rel="prefetch" href="/api/assets/js/406.452139bf.js"><link rel="prefetch" href="/api/assets/js/407.5c6ec7cc.js"><link rel="prefetch" href="/api/assets/js/408.69ac76a9.js"><link rel="prefetch" href="/api/assets/js/409.9576be39.js"><link rel="prefetch" href="/api/assets/js/41.2cd1a27c.js"><link rel="prefetch" href="/api/assets/js/410.c0156b6d.js"><link rel="prefetch" href="/api/assets/js/411.851d5e20.js"><link rel="prefetch" href="/api/assets/js/412.ccacd41e.js"><link rel="prefetch" href="/api/assets/js/413.32f09b66.js"><link rel="prefetch" href="/api/assets/js/414.893aadde.js"><link rel="prefetch" href="/api/assets/js/415.bbe3dbc3.js"><link rel="prefetch" href="/api/assets/js/416.25f0b93e.js"><link rel="prefetch" href="/api/assets/js/417.129d19c0.js"><link rel="prefetch" href="/api/assets/js/418.64ad9ae6.js"><link rel="prefetch" href="/api/assets/js/419.a866f78c.js"><link rel="prefetch" href="/api/assets/js/42.23177827.js"><link rel="prefetch" href="/api/assets/js/420.238ce0c4.js"><link rel="prefetch" href="/api/assets/js/421.b18a5efe.js"><link rel="prefetch" href="/api/assets/js/422.dbb8ebcd.js"><link rel="prefetch" href="/api/assets/js/423.5c3dd842.js"><link rel="prefetch" href="/api/assets/js/424.f4635c65.js"><link rel="prefetch" href="/api/assets/js/425.3ba6eb7a.js"><link rel="prefetch" href="/api/assets/js/426.a8af9a9f.js"><link rel="prefetch" href="/api/assets/js/427.d1494d64.js"><link rel="prefetch" href="/api/assets/js/428.6956982a.js"><link rel="prefetch" href="/api/assets/js/429.54c6d4e3.js"><link rel="prefetch" href="/api/assets/js/43.dd04c799.js"><link rel="prefetch" href="/api/assets/js/430.9f3c25d3.js"><link rel="prefetch" href="/api/assets/js/431.79bc3cee.js"><link rel="prefetch" href="/api/assets/js/432.8bd37899.js"><link rel="prefetch" href="/api/assets/js/433.b68fd617.js"><link rel="prefetch" href="/api/assets/js/434.3ef0c88e.js"><link rel="prefetch" href="/api/assets/js/435.84180a5c.js"><link rel="prefetch" href="/api/assets/js/436.74d0c419.js"><link rel="prefetch" href="/api/assets/js/437.db1b34bb.js"><link rel="prefetch" href="/api/assets/js/438.0cf07db9.js"><link rel="prefetch" href="/api/assets/js/439.de36910f.js"><link rel="prefetch" href="/api/assets/js/44.8ba6195f.js"><link rel="prefetch" href="/api/assets/js/440.30f70671.js"><link rel="prefetch" href="/api/assets/js/441.acf0169e.js"><link rel="prefetch" href="/api/assets/js/442.59c5ff8c.js"><link rel="prefetch" href="/api/assets/js/443.6d709746.js"><link rel="prefetch" href="/api/assets/js/444.0f87bf86.js"><link rel="prefetch" href="/api/assets/js/445.8c764de2.js"><link rel="prefetch" href="/api/assets/js/446.66659cf2.js"><link rel="prefetch" href="/api/assets/js/447.4e79b52e.js"><link rel="prefetch" href="/api/assets/js/448.885eb711.js"><link rel="prefetch" href="/api/assets/js/449.50b68340.js"><link rel="prefetch" href="/api/assets/js/45.7f709df4.js"><link rel="prefetch" href="/api/assets/js/450.eb970cb5.js"><link rel="prefetch" href="/api/assets/js/451.4debcde2.js"><link rel="prefetch" href="/api/assets/js/452.c85b8329.js"><link rel="prefetch" href="/api/assets/js/453.0c57e670.js"><link rel="prefetch" href="/api/assets/js/454.56394433.js"><link rel="prefetch" href="/api/assets/js/455.8fe969ed.js"><link rel="prefetch" href="/api/assets/js/456.3735051a.js"><link rel="prefetch" href="/api/assets/js/457.d056ab24.js"><link rel="prefetch" href="/api/assets/js/458.92e04477.js"><link rel="prefetch" href="/api/assets/js/459.04b2975f.js"><link rel="prefetch" href="/api/assets/js/46.058d3006.js"><link rel="prefetch" href="/api/assets/js/460.9f42a83b.js"><link rel="prefetch" href="/api/assets/js/461.28094f80.js"><link rel="prefetch" href="/api/assets/js/462.45ccc857.js"><link rel="prefetch" href="/api/assets/js/463.0b788a74.js"><link rel="prefetch" href="/api/assets/js/464.73dc4c43.js"><link rel="prefetch" href="/api/assets/js/465.3fd7ab20.js"><link rel="prefetch" href="/api/assets/js/466.4d9aed69.js"><link rel="prefetch" href="/api/assets/js/467.16a2f7d8.js"><link rel="prefetch" href="/api/assets/js/468.38041b05.js"><link rel="prefetch" href="/api/assets/js/469.99cb1e35.js"><link rel="prefetch" href="/api/assets/js/47.efc224ef.js"><link rel="prefetch" href="/api/assets/js/470.059d0dca.js"><link rel="prefetch" href="/api/assets/js/471.b0322daf.js"><link rel="prefetch" href="/api/assets/js/472.48501923.js"><link rel="prefetch" href="/api/assets/js/473.ebbff0c0.js"><link rel="prefetch" href="/api/assets/js/474.240b8c44.js"><link rel="prefetch" href="/api/assets/js/475.b31e2a7a.js"><link rel="prefetch" href="/api/assets/js/476.e2365cf9.js"><link rel="prefetch" href="/api/assets/js/477.8d903272.js"><link rel="prefetch" href="/api/assets/js/478.c217075b.js"><link rel="prefetch" href="/api/assets/js/479.d965dc57.js"><link rel="prefetch" href="/api/assets/js/48.726fcc5f.js"><link rel="prefetch" href="/api/assets/js/480.556469e0.js"><link rel="prefetch" href="/api/assets/js/481.711701e4.js"><link rel="prefetch" href="/api/assets/js/482.9e3f1993.js"><link rel="prefetch" href="/api/assets/js/483.5a7df4d9.js"><link rel="prefetch" href="/api/assets/js/484.a261d1ff.js"><link rel="prefetch" href="/api/assets/js/485.3f393b30.js"><link rel="prefetch" href="/api/assets/js/486.1ea2cfe0.js"><link rel="prefetch" href="/api/assets/js/487.20c69fcb.js"><link rel="prefetch" href="/api/assets/js/488.d1944423.js"><link rel="prefetch" href="/api/assets/js/489.e6e5761f.js"><link rel="prefetch" href="/api/assets/js/49.e5b2d8be.js"><link rel="prefetch" href="/api/assets/js/490.c4c79a52.js"><link rel="prefetch" href="/api/assets/js/491.c66ece38.js"><link rel="prefetch" href="/api/assets/js/492.bb1dd769.js"><link rel="prefetch" href="/api/assets/js/493.1a94013e.js"><link rel="prefetch" href="/api/assets/js/494.1a693eb9.js"><link rel="prefetch" href="/api/assets/js/495.55a07443.js"><link rel="prefetch" href="/api/assets/js/496.a66c125e.js"><link rel="prefetch" href="/api/assets/js/497.490bafb7.js"><link rel="prefetch" href="/api/assets/js/498.962d9b7b.js"><link rel="prefetch" href="/api/assets/js/499.69ced0a8.js"><link rel="prefetch" href="/api/assets/js/50.abfe6c50.js"><link rel="prefetch" href="/api/assets/js/500.073d87e3.js"><link rel="prefetch" href="/api/assets/js/501.85db9a1e.js"><link rel="prefetch" href="/api/assets/js/502.06de99fc.js"><link rel="prefetch" href="/api/assets/js/503.c967afec.js"><link rel="prefetch" href="/api/assets/js/504.5ebc0ad5.js"><link rel="prefetch" href="/api/assets/js/505.a0478740.js"><link rel="prefetch" href="/api/assets/js/506.ec57cc6c.js"><link rel="prefetch" href="/api/assets/js/507.2c8c77d8.js"><link rel="prefetch" href="/api/assets/js/508.040d3bf4.js"><link rel="prefetch" href="/api/assets/js/509.d3494760.js"><link rel="prefetch" href="/api/assets/js/51.2d61734d.js"><link rel="prefetch" href="/api/assets/js/510.d59a4d50.js"><link rel="prefetch" href="/api/assets/js/511.95285d73.js"><link rel="prefetch" href="/api/assets/js/512.e4823907.js"><link rel="prefetch" href="/api/assets/js/513.4b734fe0.js"><link rel="prefetch" href="/api/assets/js/514.2f112bf7.js"><link rel="prefetch" href="/api/assets/js/515.0cc5f9bc.js"><link rel="prefetch" href="/api/assets/js/516.7bee6133.js"><link rel="prefetch" href="/api/assets/js/517.b43f04f2.js"><link rel="prefetch" href="/api/assets/js/518.586132d6.js"><link rel="prefetch" href="/api/assets/js/519.6b4dccf5.js"><link rel="prefetch" href="/api/assets/js/52.2ae5fed6.js"><link rel="prefetch" href="/api/assets/js/520.b22bed0e.js"><link rel="prefetch" href="/api/assets/js/521.6578dfac.js"><link rel="prefetch" href="/api/assets/js/522.fd575d32.js"><link rel="prefetch" href="/api/assets/js/523.876bc214.js"><link rel="prefetch" href="/api/assets/js/524.47719a97.js"><link rel="prefetch" href="/api/assets/js/525.805689ed.js"><link rel="prefetch" href="/api/assets/js/526.d363b082.js"><link rel="prefetch" href="/api/assets/js/527.242c9c0a.js"><link rel="prefetch" href="/api/assets/js/528.6c23136f.js"><link rel="prefetch" href="/api/assets/js/529.cae7024b.js"><link rel="prefetch" href="/api/assets/js/53.898a5e6c.js"><link rel="prefetch" href="/api/assets/js/530.ea2b1bb0.js"><link rel="prefetch" href="/api/assets/js/531.7e66a597.js"><link rel="prefetch" href="/api/assets/js/532.9255d0a6.js"><link rel="prefetch" href="/api/assets/js/533.1b8cc9ad.js"><link rel="prefetch" href="/api/assets/js/534.51e783cc.js"><link rel="prefetch" href="/api/assets/js/535.70744b97.js"><link rel="prefetch" href="/api/assets/js/536.d5bda0ae.js"><link rel="prefetch" href="/api/assets/js/537.dcd92a14.js"><link rel="prefetch" href="/api/assets/js/538.13b7a170.js"><link rel="prefetch" href="/api/assets/js/539.91064776.js"><link rel="prefetch" href="/api/assets/js/54.2f79dcf3.js"><link rel="prefetch" href="/api/assets/js/540.2465906c.js"><link rel="prefetch" href="/api/assets/js/541.0fbfbb61.js"><link rel="prefetch" href="/api/assets/js/542.f608fc6a.js"><link rel="prefetch" href="/api/assets/js/543.f448857a.js"><link rel="prefetch" href="/api/assets/js/544.444b8f4d.js"><link rel="prefetch" href="/api/assets/js/545.64143848.js"><link rel="prefetch" href="/api/assets/js/546.1dd222bb.js"><link rel="prefetch" href="/api/assets/js/547.21c89a39.js"><link rel="prefetch" href="/api/assets/js/548.1bedd143.js"><link rel="prefetch" href="/api/assets/js/549.886bc3c4.js"><link rel="prefetch" href="/api/assets/js/55.60ec2764.js"><link rel="prefetch" href="/api/assets/js/550.b966a658.js"><link rel="prefetch" href="/api/assets/js/551.b3d11fb7.js"><link rel="prefetch" href="/api/assets/js/552.ff27da58.js"><link rel="prefetch" href="/api/assets/js/553.48eee18b.js"><link rel="prefetch" href="/api/assets/js/554.dff619cb.js"><link rel="prefetch" href="/api/assets/js/555.06ad2293.js"><link rel="prefetch" href="/api/assets/js/556.1473d352.js"><link rel="prefetch" href="/api/assets/js/557.3e2648ec.js"><link rel="prefetch" href="/api/assets/js/558.4be6db6a.js"><link rel="prefetch" href="/api/assets/js/559.1af33646.js"><link rel="prefetch" href="/api/assets/js/56.f6964ba1.js"><link rel="prefetch" href="/api/assets/js/560.0e0dc323.js"><link rel="prefetch" href="/api/assets/js/561.b88364e8.js"><link rel="prefetch" href="/api/assets/js/562.89b88a40.js"><link rel="prefetch" href="/api/assets/js/563.a3551392.js"><link rel="prefetch" href="/api/assets/js/564.b1d60385.js"><link rel="prefetch" href="/api/assets/js/565.107b6316.js"><link rel="prefetch" href="/api/assets/js/566.670cef19.js"><link rel="prefetch" href="/api/assets/js/567.fa11d863.js"><link rel="prefetch" href="/api/assets/js/568.4649884e.js"><link rel="prefetch" href="/api/assets/js/569.7ed1aa64.js"><link rel="prefetch" href="/api/assets/js/57.d785b5fd.js"><link rel="prefetch" href="/api/assets/js/570.4b2131d9.js"><link rel="prefetch" href="/api/assets/js/571.8d26c0a8.js"><link rel="prefetch" href="/api/assets/js/572.f3fb5c15.js"><link rel="prefetch" href="/api/assets/js/573.537d7a92.js"><link rel="prefetch" href="/api/assets/js/574.68feff13.js"><link rel="prefetch" href="/api/assets/js/575.d190aa11.js"><link rel="prefetch" href="/api/assets/js/576.8c007979.js"><link rel="prefetch" href="/api/assets/js/577.f13588bf.js"><link rel="prefetch" href="/api/assets/js/578.b5225efa.js"><link rel="prefetch" href="/api/assets/js/579.2ca7fff4.js"><link rel="prefetch" href="/api/assets/js/58.07416246.js"><link rel="prefetch" href="/api/assets/js/580.bd7f500a.js"><link rel="prefetch" href="/api/assets/js/581.91022017.js"><link rel="prefetch" href="/api/assets/js/582.0dd6c203.js"><link rel="prefetch" href="/api/assets/js/583.d4ce160c.js"><link rel="prefetch" href="/api/assets/js/584.4a8ac538.js"><link rel="prefetch" href="/api/assets/js/585.bee97cab.js"><link rel="prefetch" href="/api/assets/js/586.c219a0c9.js"><link rel="prefetch" href="/api/assets/js/587.c798900c.js"><link rel="prefetch" href="/api/assets/js/588.9a2c2fb1.js"><link rel="prefetch" href="/api/assets/js/589.aaea5cbc.js"><link rel="prefetch" href="/api/assets/js/59.da978d15.js"><link rel="prefetch" href="/api/assets/js/590.cfe2dec6.js"><link rel="prefetch" href="/api/assets/js/591.abd2d8dc.js"><link rel="prefetch" href="/api/assets/js/592.44c34791.js"><link rel="prefetch" href="/api/assets/js/593.e9c69d5d.js"><link rel="prefetch" href="/api/assets/js/594.30ded185.js"><link rel="prefetch" href="/api/assets/js/595.73c9e2d9.js"><link rel="prefetch" href="/api/assets/js/596.cfe86cb0.js"><link rel="prefetch" href="/api/assets/js/597.c2edc843.js"><link rel="prefetch" href="/api/assets/js/598.73ff27f1.js"><link rel="prefetch" href="/api/assets/js/599.a716da18.js"><link rel="prefetch" href="/api/assets/js/6.dd276932.js"><link rel="prefetch" href="/api/assets/js/60.183c9366.js"><link rel="prefetch" href="/api/assets/js/61.4d84000b.js"><link rel="prefetch" href="/api/assets/js/62.0237b365.js"><link rel="prefetch" href="/api/assets/js/63.15143dec.js"><link rel="prefetch" href="/api/assets/js/64.71ea5f9e.js"><link rel="prefetch" href="/api/assets/js/65.635f11a1.js"><link rel="prefetch" href="/api/assets/js/66.df106a29.js"><link rel="prefetch" href="/api/assets/js/67.57601966.js"><link rel="prefetch" href="/api/assets/js/68.5e577f14.js"><link rel="prefetch" href="/api/assets/js/69.07bd963d.js"><link rel="prefetch" href="/api/assets/js/7.3a63601e.js"><link rel="prefetch" href="/api/assets/js/70.4a4ca858.js"><link rel="prefetch" href="/api/assets/js/71.a60e33fe.js"><link rel="prefetch" href="/api/assets/js/72.70e7d6a5.js"><link rel="prefetch" href="/api/assets/js/73.56279711.js"><link rel="prefetch" href="/api/assets/js/74.cf86d057.js"><link rel="prefetch" href="/api/assets/js/75.2902d368.js"><link rel="prefetch" href="/api/assets/js/76.258c74ca.js"><link rel="prefetch" href="/api/assets/js/77.e6f42bb7.js"><link rel="prefetch" href="/api/assets/js/78.45a6293a.js"><link rel="prefetch" href="/api/assets/js/79.fed886f1.js"><link rel="prefetch" href="/api/assets/js/8.2dfea930.js"><link rel="prefetch" href="/api/assets/js/80.19fe7123.js"><link rel="prefetch" href="/api/assets/js/81.bfea14f7.js"><link rel="prefetch" href="/api/assets/js/82.e43c52a5.js"><link rel="prefetch" href="/api/assets/js/83.0e7413f7.js"><link rel="prefetch" href="/api/assets/js/84.84eb805a.js"><link rel="prefetch" href="/api/assets/js/85.3cfd0be9.js"><link rel="prefetch" href="/api/assets/js/86.e7b5ef18.js"><link rel="prefetch" href="/api/assets/js/87.6c98a844.js"><link rel="prefetch" href="/api/assets/js/88.878e39f9.js"><link rel="prefetch" href="/api/assets/js/89.03fd7486.js"><link rel="prefetch" href="/api/assets/js/9.e2a2189c.js"><link rel="prefetch" href="/api/assets/js/90.35381682.js"><link rel="prefetch" href="/api/assets/js/91.c2e38634.js"><link rel="prefetch" href="/api/assets/js/92.d37340f8.js"><link rel="prefetch" href="/api/assets/js/93.9676b410.js"><link rel="prefetch" href="/api/assets/js/94.4b5e14f2.js"><link rel="prefetch" href="/api/assets/js/95.a6a5bc7d.js"><link rel="prefetch" href="/api/assets/js/96.89b6876b.js"><link rel="prefetch" href="/api/assets/js/97.2327afdc.js"><link rel="prefetch" href="/api/assets/js/98.61197e29.js"><link rel="prefetch" href="/api/assets/js/99.3d9bb241.js">
<link rel="stylesheet" href="/api/assets/css/0.styles.b5903717.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/api/" class="home-link router-link-active"><!----> <span class="site-name">polkadot-js/api</span></a> <div class="links"><!----> <nav class="nav-links can-hide"><div class="nav-item"><a href="https://polkadot.js.org/apps/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Polkadot/Substrate Apps
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="https://polkadot.js.org/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Project family
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Documentation" class="dropdown-title"><span class="title">Documentation</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/api/" target="_blank" rel="noopener noreferrer" class="nav-link external">
API Reference (this)
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/common/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Utility Reference
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/ui/" target="_blank" rel="noopener noreferrer" class="nav-link external">
UI Libs Reference
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div><div class="nav-item"><a href="https://github.com/polkadot-js/api" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="https://polkadot.js.org/apps/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Polkadot/Substrate Apps
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="https://polkadot.js.org/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Project family
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Documentation" class="dropdown-title"><span class="title">Documentation</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/api/" target="_blank" rel="noopener noreferrer" class="nav-link external">
API Reference (this)
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/common/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Utility Reference
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://polkadot.js.org/ui/" target="_blank" rel="noopener noreferrer" class="nav-link external">
UI Libs Reference
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div><div class="nav-item"><a href="https://github.com/polkadot-js/api" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><a href="/api/start/" class="sidebar-heading clickable open"><span>Getting started</span> <!----></a> <ul class="sidebar-links sidebar-group-items"><li><a href="/api/start/install.html" class="sidebar-link">Installation</a></li><li><a href="/api/start/basics.html" class="sidebar-link">Basics & Metadata</a></li><li><a href="/api/start/create.html" class="sidebar-link">Creating an instance</a></li><li><a href="/api/start/api.consts.html" class="sidebar-link">Runtime Constants</a></li><li><a href="/api/start/api.query.html" class="sidebar-link">State queries</a></li><li><a href="/api/start/api.rpc.html" class="sidebar-link">RPC calls</a></li><li><a href="/api/start/api.query.subs.html" class="sidebar-link">Query subscriptions</a></li><li><a href="/api/start/api.query.multi.html" class="sidebar-link">Multi queries</a></li><li><a href="/api/start/api.query.other.html" class="sidebar-link">Query extras</a></li><li><a href="/api/start/api.tx.html" class="sidebar-link">Transactions</a></li><li><a href="/api/start/keyring.html" class="sidebar-link">Keyring</a></li><li><a href="/api/start/api.tx.subs.html" class="sidebar-link">Transaction subscriptions</a></li><li><a href="/api/start/api.tx.wrap.html" class="sidebar-link">Complex transactions</a></li><li><a href="/api/start/types.basics.html" class="sidebar-link">Type basics</a></li><li><a href="/api/start/types.extend.html" class="sidebar-link">Extending types</a></li><li><a href="/api/start/types.create.html" class="sidebar-link">Creating types</a></li><li><a href="/api/start/typescript.html" class="sidebar-link">TypeScript interfaces</a></li><li><a href="/api/start/typescript.user.html" class="sidebar-link">TypeScript user generated</a></li><li><a href="/api/start/FAQ.html" class="sidebar-link">FAQ</a></li></ul></section></li><li><section class="sidebar-group depth-0"><a href="/api/examples/promise/" class="sidebar-heading clickable"><span>Examples (Promise API)</span> <!----></a> <ul class="sidebar-links sidebar-group-items"><li><a href="/api/examples/promise/01_simple_connect/" class="sidebar-link">Simple connect</a></li><li><a href="/api/examples/promise/02_listen_to_blocks/" class="sidebar-link">Listen to blocks</a></li><li><a href="/api/examples/promise/03_listen_to_balance_change/" class="sidebar-link">Listen to balance change</a></li><li><a href="/api/examples/promise/04_unsubscribe/" class="sidebar-link">Unsubscribe from listening</a></li><li><a href="/api/examples/promise/05_read_storage/" class="sidebar-link">Read chain state</a></li><li><a href="/api/examples/promise/06_make_transfer/" class="sidebar-link">Make a transfer</a></li><li><a href="/api/examples/promise/08_system_events/" class="sidebar-link">Display system events</a></li><li><a href="/api/examples/promise/09_transfer_events/" class="sidebar-link">Transaction with events</a></li><li><a href="/api/examples/promise/10_upgrade_chain/" class="sidebar-link">Upgrade via sudo</a></li><li><a href="/api/examples/promise/90_typegen/" class="sidebar-link">TypeScript augmentation</a></li></ul></section></li><li><section class="sidebar-group depth-0"><a href="/api/substrate/" class="sidebar-heading clickable"><span>Substrate defaults</span> <!----></a> <ul class="sidebar-links sidebar-group-items"><li><a href="/api/substrate/rpc.html" class="sidebar-link">Substrate RPC</a></li><li><a href="/api/substrate/constants.html" class="sidebar-link">Constants</a></li><li><a href="/api/substrate/storage.html" class="sidebar-link">State storage</a></li><li><a href="/api/substrate/extrinsics.html" class="sidebar-link">Extrinsics</a></li><li><a href="/api/substrate/events.html" class="sidebar-link">System events</a></li><li><a href="/api/substrate/errors.html" class="sidebar-link">Errors</a></li></ul></section></li><li><a href="/api/api/" class="sidebar-link">@polkadot/api</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/api/api/#api-selection" class="sidebar-link">API Selection</a></li><li class="sidebar-sub-header"><a href="/api/api/#dynamic-by-default" class="sidebar-link">Dynamic by default</a></li><li class="sidebar-sub-header"><a href="/api/api/#installation-import" class="sidebar-link">Installation & import</a></li><li class="sidebar-sub-header"><a href="/api/api/#registering-custom-types" class="sidebar-link">Registering custom types</a></li><li class="sidebar-sub-header"><a href="/api/api/#users" class="sidebar-link">Users</a></li><li class="sidebar-sub-header"><a href="/api/api/#classes" class="sidebar-link">Classes</a></li></ul></li><li><a href="/api/types/" class="sidebar-link">@polkadot/types</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/api/types/#codec-types" class="sidebar-link">Codec types</a></li><li class="sidebar-sub-header"><a href="/api/types/#primitive-types" class="sidebar-link">Primitive types</a></li></ul></li><li><a href="/api/CONTRIBUTING.html" class="sidebar-link">Contributing</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/api/CONTRIBUTING.html#what" class="sidebar-link">What?</a></li><li class="sidebar-sub-header"><a href="/api/CONTRIBUTING.html#rules" class="sidebar-link">Rules</a></li><li class="sidebar-sub-header"><a href="/api/CONTRIBUTING.html#releases" class="sidebar-link">Releases</a></li><li class="sidebar-sub-header"><a href="/api/CONTRIBUTING.html#changes-to-this-arrangement" class="sidebar-link">Changes to this arrangement</a></li><li class="sidebar-sub-header"><a href="/api/CONTRIBUTING.html#heritage" class="sidebar-link">Heritage</a></li></ul></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="_1-7-0-beta-x"><a href="#_1-7-0-beta-x" class="header-anchor">#</a> 1.7.0-beta.x</h1> <ul><li>Add support for new Substrate <code>state_getKeysPaged</code> RPC</li> <li>Re-add fixed (with tests) checks for query args</li> <li>Move <code>derive.staking.controllers</code> to <code>derive.staking.stashes</code>, reflecting actual content</li> <li>Cater for adjusted storage (non-linked maps) for <code>derive.staking.stashes</code> (with old-compat)</li> <li>Expanded <code>derive.staking.*</code> derives, including addition of <code>derive.staking.own*</code></li></ul> <h1 id="_1-6-2-mar-12-2020"><a href="#_1-6-2-mar-12-2020" class="header-anchor">#</a> 1.6.2 Mar 12, 2020</h1> <ul><li>Revert checks for query args, not working on <code>.at()</code> queries (proper fix in next version)</li></ul> <h1 id="_1-6-1-mar-12-2020"><a href="#_1-6-1-mar-12-2020" class="header-anchor">#</a> 1.6.1 Mar 12, 2020</h1> <ul><li><strong>Breaking change</strong> <code>api.rpc.state.queryStorage(...)</code> now fully decodes the <code>Vec<StorageChangeSet></code> and returns a decoded <code>[Hash, Codec[]][]</code> when using this RPC.</li> <li><code>StorageKey</code> now has an <code>.args</code> property, decoded from meta where <code>twox64_concat</code> or <code>blake128_concat</code> are used on maps</li> <li>Fix <code>api.query.*.*.entries</code> type conversions to return exact types (not <code>Option</code> in some cases)</li> <li>Add <code>api.query.*.*.keys</code> to retrieve only the storage keys, similar to <code>.entries</code></li> <li>Full linked map retrievals will now use direct getStorage queries for faster operation</li> <li>Underlying rpc-core interfaces now unwraps <code>Error("...")</code> when found in responses</li> <li>Added <code>derive.eras*</code> interfaces for queries to new Substrate staking interfaces</li> <li>Update <code>derive.account</code> to cater for new indices module storage (detected with fallbacks)</li> <li>Adjust derive queries for session without module prefix (DoubleMap -> Map), detected on use</li> <li>Add runtime validation for map arguments to <code>api.query.*</code></li> <li>TypeScript interfaces for linked maps now correctly generates as <code>[Type, Linkage<Next>]</code></li></ul> <h1 id="_1-5-1-mar-06-2020"><a href="#_1-5-1-mar-06-2020" class="header-anchor">#</a> 1.5.1 Mar 06, 2020</h1> <ul><li><strong>Important</strong> Substrate master has updated staking, on older chains supply <code>StakingLedger: 'StakingLedgerTo223'</code></li> <li><strong>Important</strong> Substrate master has updated collective, on older chains supply <code>Votes: 'VotesTo230'</code></li> <li>Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87)</li> <li>Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied)</li> <li>Remove use of deprecated <code>Observable.create</code> (Thanks to https://github.com/Himself65)</li> <li>Add types & metadata for the latest Polkadot/Substrate runtime versions (master branches)</li> <li>Type extraction will now allow the same sub-module name across packages, i.e. <code>@polkadot/types/interfaces/runtime</code> & <code>@mine/interfaces/runtime</code> will be valid</li> <li>Add <code>.range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][]</code> on all storage entries</li> <li>Add <code>.raw(...args: any[]): Promise<Uint8Array & Codec></code> to all RPC calls, returning the un-encoded result</li> <li>Allow pre-module type aliasing with <code>typesAlias: { <moduleName>: { <meta-type>: <alias-type> } }</code> in API construction options</li> <li>Allow <code>BTreeMap</code> to be initialized with a <code>Record<string, any></code> object (in addition to <code>Map</code>)</li> <li>Allow for <code>HashMap<KeyType, ValueType></code> definitions</li> <li><code>Bool</code> will now correctly return <code>isEmpty</code> on false/default values</li> <li>Refresh the <code>NetworkState</code> types as returned by the <code>rpc.system.networkState()</code> call to current</li> <li>Expose <code>registry.createClass(<typeName>)</code> to allow for creating type classes. If you are using <code>createClass</code> or <code>ClassOf</code> in your code, it is recommended to swap to this instance.</li> <li>Add additional derives to <code>api.derive.staking</code> to handle lazy-payout retrievals</li> <li>Update <code>@polkadot/{util, util-crypto, keyring}</code> to 1.6.1 & <code>@polkadot/wasm</code> to 1.2.1</li></ul> <h1 id="_1-4-2-feb-27-2020"><a href="#_1-4-2-feb-27-2020" class="header-anchor">#</a> 1.4.2 Feb 27, 2020</h1> <ul><li>Fix <code>api.tx(<extrinsic>): Submittable</code> decoration (non-working in 1.4.1, now with proper test)</li></ul> <h1 id="_1-4-1-feb-26-2020"><a href="#_1-4-1-feb-26-2020" class="header-anchor">#</a> 1.4.1 Feb 26, 2020</h1> <ul><li><strong>Breaking change</strong> (TypeScript only) The <code>*.d.ts</code> files now contain TypeScript 3.8 features (specifically <code>#private</code>), which is not usable in TS versions < 3.8</li> <li><strong>Breaking change</strong> - <code>api.derive.staking.*</code> has updated result types and detects support for lazy payouts queries</li> <li>Rework type generation for <code>api.{query, tx}</code> to properly handle complex type inputs (Thanks to https://github.com/monitz87)</li> <li>Rework metadata <code>--strict</code> mode to effectively decorate chain metadata (Thanks to https://github.com/monitz87)</li> <li>Add <code>api.rpc.chain.subscribeAllHeads</code> (not just best) (Thanks to https://github.com/jak-pan)</li> <li>Add <code>api.rpc.engine.*</code> for manual seal support</li> <li>Add <code>api.injectMetadata(metadata)</code> to initialize API with a specific metadata version</li> <li>The api now checks for runtime upgrades, augmenting the interfaces with new metadata when found</li> <li>Support types & interfaces required for lazy reaping, lazy payouts & offchain phragmen</li> <li><code>Option</code> types now has an <code>.unwrapOrDefault</code> as an complement to <code>.unwrap</code> & <code>.unwrapOr</code></li> <li>Support JS <code>BigInt</code> inputs in any derived <code>UInt</code> and <code>Int</code> object, e.g. <code>api.tx.balances.transfer(..., 9876543210123456789n)</code></li> <li><code>UInt</code> & <code>Int</code> now does source bitLength checks upon construction</li> <li>Registry now exposes <code>.createType(<type>, ...args)</code> as an additional helper (like the API)</li> <li>Expand <code>.toHuman</code> on <code>ExtrinsicEra</code>, <code>SubmittableResult</code> & <code>Vote</code></li> <li>Move <code>DigestItem</code>, <code>Fixed64</code>, <code>H160</code>, <code>H256</code> & <code>H512</code> to interfaces in <code>@polkadot/types/interfaces</code></li> <li>Align construction of unknown types in <code>registry.get</code> consistently warn on detection, throw on use</li> <li>Support for arbitrary <code>u*`` types via</code>UInt<bitLength>` type definitions</bitLength></li> <li>Expose static <code>.with</code> on <code>UInt</code>, <code>Int</code> & <code>U8aFixed</code> classes with optional type name override</li> <li>Remove <a href="https://github.com/polkadot-js/api/issues/574" target="_blank" rel="noopener noreferrer">11 Jan 2019<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> extrinsic length hack</li> <li>Use ES <code>#field</code> on private class fields as applicable</li> <li>Move <code>types/primitive/{extrinsics, generic}</code> to <code>types/{extrinsics, generic}</code></li> <li>Cleanup augmentation and generation scripts for type definitions, aligning with api augmentation</li> <li>Bump to <code>@polkadot/{util, util-crypto, keyring}</code> 2.5.1</li></ul> <h1 id="_1-3-1-feb-18-2020"><a href="#_1-3-1-feb-18-2020" class="header-anchor">#</a> 1.3.1 Feb 18, 2020</h1> <ul><li>Add <code>@types/bn.js</code> as a normal dependency, exposed in <code>*.d.ts</code> (Thanks to https://github.com/monitz87)</li> <li>Type generation scripts (including <code>polkadot-types-from-{chain,defs}</code>) has been moved to the <code>@polkadot/typegen</code> package</li> <li>The <code>@polkadot/types/codec/create</code> has been moved to <code>@polkadot/types/create</code>, imports from <code>@polkadot/types</code> are unaffected</li> <li>Expose chain properties on registry (and use for API type formatting)</li> <li>Add <code>toHuman(isExtended?: boolean)</code> to all codec types, formatting into a human-readable structure</li></ul> <h1 id="_1-2-1-feb-16-2020"><a href="#_1-2-1-feb-16-2020" class="header-anchor">#</a> 1.2.1 Feb 16, 2020</h1> <ul><li><strong>Important</strong> Update RPC status codes (latest Substrate 2), with the <code>isInBlock</code> (<code>isFinalized</code> now indicates finality)</li> <li>Storage <code>.entries(arg?: any)</code> now has the correct argument type for DoubleMap (Thanks to https://github.com/monitz87)</li> <li>Swap Kusama and Polkadot aliases for <code>Address</code> to <code>AccountId</code> (future update)</li> <li>Add <code>LookupSource</code> and <code>LookupTarget</code> types instead of mapping these directly for aliasing</li> <li>Add <code>BitVec</code> type primitive</li> <li>Add support for <code>system.account</code> for balance & nonce queries in derives as well as Submittables (Substrate composites)</li> <li>Add <code>rpc.author.hasKey</code> and <code>rpc.author.hasSessionKeys</code> RPCs</li> <li>Add derives for the parachains interfaces</li> <li>Applied the latest types for Polkadot parachains</li> <li><code>registry.findMetaError</code> now can take in a <code>DispatchErrorModule</code> object for error lookups (from <code>asModule</code> in <code>DispatchError</code>)</li> <li>Metadata now correctly serializes to the original input data via <code>toHex()</code> & <code>toU8a()</code></li> <li>Metadata documentation generation rework, including the output of errors from metadata</li> <li>Update all examples and comments to use latest <code>system.account</code> queries (instead of <code>system.accountNonce</code> and <code>balances.freeBalance</code>/<code>balances.reservedBalance</code>)</li> <li>Cleanup <code>codec/Date</code> tests to make it run properly on all timezones</li> <li>Add explicit dependencies to all packages and move TypeScript <code>@types/*</code> to dev deps</li></ul> <h1 id="_1-1-1-feb-06-2020"><a href="#_1-1-1-feb-06-2020" class="header-anchor">#</a> 1.1.1 Feb 06, 2020</h1> <ul><li><strong>Important</strong> Chains without <code>balances.account</code> or <code>system.account</code> should supply <code>"BalanceLock": "BalanceLockTo212"</code> to their types to use the previous-generation <code>BalanceLock</code> (when querying locks)</li> <li>Add support for <code>balances.account</code> in all applicable derives (incl. <code>vesting</code> module)</li> <li>Inject and use SignedExtensions by name from V11 metadata (V4 extrinsics only)</li> <li>Add typings for <code>api.tx.*.*</code> - the <code>polkadot-types-from-chain</code> now also generates these</li> <li>Remove additional V1-only derives <code>(staking.recentlyOffline</code>, <code>balances.nominatorsFor</code>)</li> <li>Add <code>.isMax()</code> on int values, an opposite of <code>isZero()</code> (e.g. <code>u128</code>, as well as derived, e.g. <code>Balances</code>)</li> <li>Add <code>.keyPrefix()</code> to all <code>api.query.*</code> complementing the <code>.key()</code> call, both returning a hex string</li> <li>Council derives now takes bootstrapping (member, no elections) into account</li> <li>Account derives now allow for an optional indices module (not required)</li> <li>Adjust balances fees derivation with optional transfer and creation fees (removed in Substrate)</li> <li>Adjust enum <code>.toJSON()</code> to return type name as specified</li></ul> <h1 id="_1-0-1-jan-30-2020"><a href="#_1-0-1-jan-30-2020" class="header-anchor">#</a> 1.0.1 Jan 30, 2020</h1> <ul><li><strong>Breaking change</strong> Drop support for Substrate v1 chain in all derives</li> <li>Return unsub functions from provider .on emitters (Thanks to https://github.com/jak-pan)</li> <li><code>ApiPromise.isReady</code> now rejects on unrecoverable errors (Thanks to https://github.com/laec)</li> <li>Add <code>polkadot-types-from-chain</code> & <code>polkadot-types-from-defs</code> TypeScript generators to <code>@polkadot/types</code></li> <li>Only decorate derives where relevant parent <code>api.query.*</code> is available</li> <li>Support <code>.entries(arg?: any)</code> lookups on DoubleMaps (in addition to previously supported maps)</li> <li>Allow v9 metadata to parse even in cases where it was wrongly deployed pre-v10</li> <li>Allow type-aliases on a per-module basis (e.g. <code>Judgement</code> in identity as well as society)</li> <li>Allow passing <code>{ signer }</code> to both <code>api.tx.*</code> and <code>api.sign</code> (in addition to <code>api.setSigner</code>)</li> <li>Add derives for the society module</li> <li>Don't map empty tuples, e.g. <code>()</code> to <code>Null</code>, rather keep them empty</li> <li>Add lookups to the metadata errors via <code>findMetaError</code></li> <li>Update metadata and types for the latest Substrate & Polkadot versions</li> <li>Support metadata V11 as per latest Substrate</li> <li>Remove support for un-deployed metadata</li> <li>Remove old known types for Substrate V1</li></ul> <h1 id="_0-100-1-jan-13-2020"><a href="#_0-100-1-jan-13-2020" class="header-anchor">#</a> 0.100.1 Jan 13, 2020</h1> <ul><li><strong>Important</strong> This will the the last API version with Substrate 1.x support. Although you will still be able to use subsequent versions with older chains, dependent libraries such as sr25519 may not be compatible.</li> <li>Add support for the Substrate identity module</li> <li>Remove the <code>codec/Data</code> type, to remove a conflict with Substrate. This type is now named <code>Raw</code></li> <li>Fix for linked maps using <code>Option</code></li> <li>Add support for <code>BTreeSet</code> (Thanks to https://github.com/satellitex)</li> <li>Add support for Metadata v10</li> <li>Add support for latest Polkadot/Substrate types</li> <li>Add <code>paymentInfo</code> to submittables to calculate fees</li></ul> <h1 id="_0-99-1-dec-13-2019"><a href="#_0-99-1-dec-13-2019" class="header-anchor">#</a> 0.99.1 Dec 13, 2019</h1> <ul><li><strong>Breaking change</strong> The <code>Data</code> and <code>U8a</code> type has been renamed and just replaced with the <code>Raw</code> type</li> <li><strong>Breaking change</strong> The <code>api.derive.staking.info</code> has been split into 2 - <code>staking.query</code> for non-balance related information (more effective) and <code>staking.account</code> that enhances query for all the information previously found <code>.info</code></li> <li>Cleanup <code>DoubleMap</code> hashing to always hash over the full value (in the case of <code>Vec<T></code>, this includes the length)</li> <li>Update democracy derives to take care of nextTally and lowestUnbaked</li> <li>Add additional derives for both council & treasury</li> <li>Alignment with latest Polkadot/Substrate master branch types</li></ul> <h1 id="_0-98-1-dec-04-2019"><a href="#_0-98-1-dec-04-2019" class="header-anchor">#</a> 0.98.1 Dec 04, 2019</h1> <ul><li>Make the TypeScript generation script mor re-usable (Thanks to https://github.com/xlc)</li> <li>Add <code>.entries()</code> for all map-types, returning storage keys and values</li> <li>Add <code>.signAsync</code> to submittable extrinsics (Thanks to https://github.com/c410-f3r)</li> <li>Cleanup circular references between internal dependencies</li> <li>Support for new Substrate democracy with preimages in derive</li> <li>Alignment of types with Substrate/Polkadot master branches</li></ul> <h1 id="_0-97-1-nov-29-2019"><a href="#_0-97-1-nov-29-2019" class="header-anchor">#</a> 0.97.1 Nov 29, 2019</h1> <ul><li><strong>Breaking change</strong> Add the passing on an explicit <code>Registry</code> to all calls to <code>createType</code> as well as all codec classes. If you are upgrading form an older version, use the <a href="/api/UPGRADING.html">migration guide</a> to walk through the changes required.</li> <li><strong>Breaking change</strong> The metadata classes have been moved from <code>@polkadot/types</code> into <code>@polkadot/metadata</code>. If you explicitly create <code>Metadata</code> classes, you now would need to do so with the <code>import Metadata from '@polkadot/metadata';</code> This is a decorated class, where the previous metadata is now available on <code>Metadata.metadata</code>, alongside decorated <code>consts.*</code>', <code>tx.*</code> and <code>query.*</code>.</li> <li><strong>Breaking change</strong> Session <code>Keys</code> defaults to 4 keys now (Substrate master), depending on your node config, you would want to override with e.g. <code>Keys: 'SessionKeys3'</code> (1, 2, 3, 4, 5 & 6)</li> <li><strong>Breaking change</strong> <code>ValidatorPrefs</code> now default to the new percentage commission model, to use the previous <code>validatorPayment</code>, you can override with <code>ValidatorPrefs: 'ValidatorPrefsTo196'</code></li> <li><code>api.derive.*</code> now has built-in memomization</li> <li>Various fixes and cleanups to <code>api.derive.*</code> including era length progress and vesting calculations</li> <li>Aligned all types with the latest Polkadot & Substrate, including Kusama CC3</li> <li>Support for Metadata V9, which adjusts the hashing methods of storage entries</li> <li>Support for Metadata V10 (still un-released), which includes prefixed map support</li></ul> <h1 id="_0-96-1-nov-09-2019"><a href="#_0-96-1-nov-09-2019" class="header-anchor">#</a> 0.96.1 Nov 09, 2019</h1> <ul><li>Updated types for latest Kusama</li> <li>Add <code>filterRecords</code> (in addition to <code>findRecord</code>) on submittable results</li> <li>Various ABI v2 contract fixes</li> <li>Update derive for elections (incl. RunnersUp) and heartbeat derives (with blocks & messages)</li> <li>Add vesting totals & locked breakdowns to derive balances</li> <li>Update council derives for the latest Substrate master support (with constants)</li> <li>Derive cleanups, including sharing of instances between the API and internal to derives</li></ul> <h1 id="_0-95-2-oct-25-2019"><a href="#_0-95-2-oct-25-2019" class="header-anchor">#</a> 0.95.2 Oct 25, 2019</h1> <ul><li>Temporary removal of <code>account_nextIndex</code> use, will be re-added in a future release</li></ul> <h1 id="_0-95-1-oct-25-2019"><a href="#_0-95-1-oct-25-2019" class="header-anchor">#</a> 0.95.1 Oct 25, 2019</h1> <ul><li>Support Extrinsic V4 with additional signature indicator (Latest Polkadot/Substrate/Kusama)</li> <li>Adjust subscription update checks to avoid duplicated data updates</li> <li>Support Metadata V8 (exposes per-module <code>decl_error</code> definitions)</li> <li>Support next generation contracts ABI (with additional type definitions)</li> <li>Support for <code>BTreeMap<K, V></code> types and definitions</li> <li>All latest Polkadot & Substrate types (as per master branches)</li> <li><strong>Breaking change</strong> <code>Call.injectMethods</code> is moved to <code>Call.injectMetadata</code> to align with <code>Events</code> (This <em>should</em> not be used externally, however mentioned as breaking here)</li></ul> <h1 id="_0-94-1-oct-07-2019"><a href="#_0-94-1-oct-07-2019" class="header-anchor">#</a> 0.94.1 Oct 07, 2019</h1> <ul><li>Add handling of <code>Result<Ok, Error></code> definitions</li> <li>Adjust API cloning now takes RPC filters from source into account</li> <li>Simplification of isPedantic checks and less overhead on StorageData types</li> <li>Cleanups and fixes around RPC and derive type definitions</li> <li>Fix <code>derive.imOnline.receivedHeartbeats</code> to query via indexes</li> <li>Adjustment of <code>api.derive.elections.{approvalsOf|approvalsOfAt}</code> to allow ss58 address input</li> <li>Cleanup <code>Enum</code> <code>.eq</code> handling to be more exhaustive</li> <li>Add documentation for custom extrinsic formats (advanced chains)</li> <li>Update to latest substrate master metadata</li></ul> <h1 id="_0-93-1-sep-26-2019"><a href="#_0-93-1-sep-26-2019" class="header-anchor">#</a> 0.93.1 Sep 26, 2019</h1> <ul><li>Support for Kusama CC2</li> <li>In extrinsic submission, use <code>rpc.account.nextIndex</code> to retrieve the nonce when available</li> <li>For TypeScript users <code>api.query.*.*</code> is now properly typed for default Substrate calls, i.e. <code>api.query.balances.freeBalance(...)</code> will return a <code>Balance</code> type. Additionally the <code>api.queryMulti</code> and <code>.multi</code> on queries not allow generic type params.</li> <li>Add <code>api.rpc.accounts.nextIndex</code>, <code>api.rpc.contracts.call</code> and <code>api.rpc.rpc.methods</code> calls. Optional calls (such as account/contracts) is decorated based on the results from <code>rpc.methods</code>, so they don't show up on nodes where they are not active.</li> <li>Updated types to support the latest Polkadot/Substrate master changes</li> <li>Support recursive type registration (self-referencing via <code>Box</code>) in addition to better sanitation of user-defined-types</li> <li>Documentation and example updates (thanks mostly to contributions)</li></ul> <h1 id="_0-92-1-sep-12-2019"><a href="#_0-92-1-sep-12-2019" class="header-anchor">#</a> 0.92.1 Sep 12, 2019</h1> <ul><li>The API now correctly sets the ss58 prefix as retrieved from the chain properties via <code>ss58Format</code></li> <li>Bump to <code>@polkadot/util</code> 1.4.1, removing use of <code>ExtError</code></li> <li>The <code>Keyring</code> from <code>@polkadot/keyring</code> is now exposed on the API as well. You can do <code>import { Keyring } from '@polkadot/api'</code> - this alleviates the need for extra dependencies (apart from <code>@polkadot/api</code>), and since the keyring is critical for signing operations, aligns everything in one bundle</li> <li>Support the latest Polkadot & Substrate master branches (incl. metadata updates)</li> <li>Getting started documentation has been made available</li></ul> <h1 id="_0-91-1-sep-09-2019"><a href="#_0-91-1-sep-09-2019" class="header-anchor">#</a> 0.91.1 Sep 09, 2019</h1> <ul><li>This release was focussed on stability, with a number of cleanups and bug-fixes</li> <li>Adjustments for Substrate 1.x chain detection (with auto-types) and Substrate 2.x support has been extended with all latest types</li> <li>The <code>getRuntimeVersion</code> and <code>subscribeRuntimeVersion</code> RPCs are now only available on the <code>rpc.state.*</code> endpoints. This aligns with the Substrate implementation.</li> <li>The <code>author_insertKey</code> RPC's last argument <code>publicKey</code> is now required, as to reflect Substrate implementation.</li> <li>Support for extrinsics with versions that is not in the base Substrate implementation (V1-V3) can now be done by providing an implementation for <code>ExtrinsicUnknown</code></li> <li>Redeemed balance calculation if <code>api.derive</code> now returns the correct values again (bug fix)</li> <li>added the <code>yarn chain:info [--ws URL]</code> utility to extract a calls-only metadata version</li> <li>Missing types are now logged via a <code>console.warn</code>, not via <code>.error</code></li> <li><code>Extrinsic</code>, <code>ExtrinsicPayload</code> & <code>SignerPayload</code> is registered in the type registry and can be overridden now
<ul><li><strong>Breaking change</strong> <code>SignerPayload</code> is renamed to <code>SignerPayloadJSON</code></li> <li><strong>Breaking change</strong> <code>SignerPayloadJSON</code>, <code>SignerPayloadRawBase</code> and <code>SignerPayloadRaw</code> are all moved to <code>@polkadot/types</code></li></ul></li></ul> <h1 id="_0-90-1-aug-24-2019"><a href="#_0-90-1-aug-24-2019" class="header-anchor">#</a> 0.90.1 Aug 24, 2019</h1> <p>If you are upgrading form an older version, use the CHANGELOG hand-in-hand with the <a href="/api/UPGRADING.html">migration guide</a>.</p> <ul><li><strong>Breaking change</strong> <code>api.rpc.chain.subscribeNewHeads</code> is now available as opposed to the old <code>subscribeNewHead</code>. This aligns with the Substrate implementation.</li> <li><strong>Breaking change</strong> Substrate 2.x & Polkadot master has moved both <code>BlockNumber</code> & <code>Index</code> to <code>u32</code>. The API tracks these closely. If you are running a chain with <code>u64</code> values (for either), pass the type override to the API on creation, e.g. <code>ApiPromise.create({ types: { BlockNumber: 'u64', Index: 'u64' } })</code> to avoid getting warnings about mismatched types.</li> <li><strong>Breaking change</strong> <code>Api.create(...)</code> and <code>new Api(...)</code> now only takes an options Object, so if you passed the provider directly previously, you need to swap the use to <code>Api.create({ provider: ... })</code></li> <li><strong>Breaking change</strong> Runtime types have been extended and moved to definitions instead of classes
<ul><li>Primitive types for <code>i*</code> and <code>u*</code> (e.g. <code>u32</code>) are now only available in their lowercase versions. Additionally <code>Vector</code> is now only available as <code>Vec</code>, and <code>Method</code> has been renamed to <code>Call</code>, in both cases aligning with Rust.</li> <li><code>Moment</code> now implements as <code>u64</code> as per the Substrate codebase. (It it up to the user to interpret, for substrate 2.x it is not ms resolution)</li> <li>For creation of types, it is recommended to use <code>createType(<TypeName>, <value>)</code> instead of e.g. <code>new Proposal(...)</code>. When passing these to methods/queries, construction should not be needed, the raw value can be passed.</li> <li>For moved types, a previous import would have been from <code>@polkadot/types</code>, i.e. <code>import { SetIndex } from '@polkadot/types</code>, now just the interfaces (TypeScript) are available via <code>import { SetIndex } from '@polkadot/types/interfaces</code></li> <li><code>usize</code> is now a blacklisted type that will throw on construction. Since it is platform-specific, it creates incompatibilities between native (generally <code>u64</code>) and WASM (always <code>u32</code>) code. Use one of the <code>u32</code> or <code>u64</code> types explicitly.</li></ul></li> <li>Support substrate v7 metadata</li> <li>The <code>Method.findFunction(callIndex)</code> (allowing decoding of raw data), is now available on <code>api.findCall(callIndex)</code>. To keep backwards compatibility, it is still available on <code>GenericCall.findMethod</code> but the <code>api.findCall</code> is recommended and suggested.</li> <li>The <code>types/codec/createType</code> has been moved to <code>types/codec/create</code> with the same exports. If you explicitly imported from here (and not doing the suggested <code>import { createType } from '@polkadot/types</code>), the reference needs to be updated</li></ul> <h1 id="_0-82-0-beta-x-jul-28-2019"><a href="#_0-82-0-beta-x-jul-28-2019" class="header-anchor">#</a> 0.82.0-beta.x Jul 28, 2019</h1> <ul><li><p>Support for substrate 2.x (master) has been extended,</p> <ul><li>Additional types have been addedd for the modules</li> <li><code>api.derive.contract</code> is now <code>api.derive.contracts</code> to align with the substrate 2.x rename. (Feature detection is used so it supports both 1.x and 2.x chains)</li> <li>Addition of <code>api.derive.elections</code></li></ul></li> <li><p>Support latest substrate 2 v6 metadata with module constants using <code>api.consts</code>.</p> <ul><li>The api now uses the module name for the storage methods, aligning module names for consistency with transactions. The methods of the grandpa module moved from <code>api.query.grandpaFinality</code> to <code>api.query.grandpa</code>.</li> <li>Internally the <code>@polkadot/extrinsics</code> and <code>@polkadot/storage</code> have been moved to <code>@polkadot/api-metadata</code> and are now accessible as <code>@polkadot/api-metadata/extrinsics</code> and <code>@polkadot/api-metadata/storage</code>, respectively.</li> <li><strong>Breaking Change</strong> Vote interface extends U8a instead of i8. Vote properties can be accessed via the <code>isAye</code>, <code>isNay</code>, and <code>conviction</code> getters. Votes can still be constructed as before with a raw JS boolean, a SCALE encoded Boolean, an i8 number, or a JS object with properties <code>aye</code> and <code>conviction</code> defined.</li></ul></li> <li><p>Support V2 Extrinsics in addition to V1, v2 includes an optional <code>tip</code></p> <ul><li>In addition to this support, the <code>Signer</code> interface has deprecated the <code>sign</code> method and replaced it with <code>signPayload</code></li> <li>Support for the <code>sign</code> interfaces (API detection and calling when <code>signPayload</code> is not available) will be removed in subsequent versions.</li></ul></li> <li><p>The <code>ContractsAbi</code> type has been moved from <code>@polkadot/types</code> to <code>import { Abi } from '@polkadot/api-contract</code>. This paves the way for an enhanced contracts interface, instead of dealing with low-level API calls.</p></li></ul> <h1 id="_0-81-1-jun-14-2019"><a href="#_0-81-1-jun-14-2019" class="header-anchor">#</a> 0.81.1 Jun 14, 2019</h1> <ul><li><p>The dependency on <code>@polkadot/keyring</code> has been removed - if you relied on the API to provide this, you would now need to manually add it</p></li> <li><p><code>createType</code> allows for the creation of <code>[u8; <length>]</code> types (opening the door for contract support)</p></li> <li><p><code>api.derive.staking.info</code> now returns the <code>rewardDestination</code></p></li> <li><p>Fix for disconnection when default providers (non-specified) are used</p></li> <li><p>Don't console.log type decoding errors and then throw, only re-throw with additional info</p></li> <li><p>Support latest substrate 2.x v5 metadata</p> <ul><li>Add <code>ApprovalFlag</code>, <code>SetIndex</code>, <code>VoterInfo</code> types for council as per substrate</li> <li>Update <code>ContractInfo</code> to match substrate master</li></ul></li> <li><p>Add support for new inherent digests from substrate.</p> <ul><li><strong>Breaking change</strong> Because of the new <code>Seal</code>, the old/new Seals are not compatible. If you were using the old <code>Seal</code> from the <code>Digest</code>s, you would now use <code>isSealV0</code> for the pre-substrate 1.0 version and the new <code>isSeal</code> for the current version</li> <li>Update <code>HeaderExtended</code> to retrieve author information from substrate 2.x (new <code>PreRuntime</code> digests)</li></ul></li> <li><p>Cater for <code>Vec</code>, <code>Option</code>, <code>Result</code>, tuples and fixed vectors for contracts ABIs</p></li> <li><p>Additional examples for subscriptions using multi</p></li> <li><p>Add <code>off</code> method to <code>Api</code> (Base, for both <code>ApiPromise</code> & <code>ApiRx</code>) to remove an event listener</p></li></ul> <h1 id="_0-80-1-jun-04-2019"><a href="#_0-80-1-jun-04-2019" class="header-anchor">#</a> 0.80.1 Jun 04, 2019</h1> <ul><li>Support for mortal transactions</li> <li>Better DoubleMap storage support</li> <li>api-derive cleanups, including additional info for balances.all and taking.info returning redeemable and locked balances</li> <li>Added SignaturePayloadRaw for better offline signing support</li> <li>Updated metadata for current substrate master</li> <li>Misc. cleanups and fixes</li></ul> <h1 id="_0-79-1-may-22-2019"><a href="#_0-79-1-may-22-2019" class="header-anchor">#</a> 0.79.1 May 22, 2019</h1> <ul><li>DoubleMap query support</li> <li>Support latest EventRecord metadata (substrate master)</li> <li>Introduce RuntimeVersion type overrides in api/nodeCompat.ts</li> <li>Add <code>api.queryMulti</code> and <code>api.query.<module>.<method>.multi</code></li> <li>Convert <code>api.derive.*</code> to use multi queries</li> <li><code>types/codec/Set</code> now extends the base JS <code>Set</code> (<strong>breaking change</strong>: <code>set.values</code> -> <code>set.strings</code>)</li> <li>Breaking: rename <code>meta.arguments</code> to <code>meta.args</code> in function metadata (<code>arguments</code> is a JS reserved word)</li> <li>Add <code>toRawType</code> on all type classes (breakdown into primitive types)</li></ul> <h1 id="_0-78-1-may-08-2019"><a href="#_0-78-1-may-08-2019" class="header-anchor">#</a> 0.78.1 May 08, 2019</h1> <ul><li>Fix linked-maps (not working since 0.77.1)</li> <li>Convert Usize to U32 (as found in WASM environments)</li> <li>Allow pre-bundled metadata in API create & constructor</li> <li>Don't clobber existing keys in structs when auto-adding fields</li> <li>Additional logging when constructing Structs as to where failures occur</li> <li>Do type assertion on all exposed asXXX getters</li> <li>Metadata updates for substrate (WithdrawReasons, ContractInfo)</li></ul> <h1 id="_0-77-1-apr-25-2019"><a href="#_0-77-1-apr-25-2019" class="header-anchor">#</a> 0.77.1 Apr 25, 2019</h1> <ul><li>Support Metadata v4, which introduces the use of a custom hasher to hash storage map keys.</li> <li>Add TreasuryProposal (not the same as democracy, type aliased)</li></ul> <h1 id="_0-76-1-apr-03-2019"><a href="#_0-76-1-apr-03-2019" class="header-anchor">#</a> 0.76.1 Apr 03, 2019</h1> <ul><li>Caching improvements (duplicate queries, no duplicate subscriptions)</li> <li>Experimental contract API</li> <li>Update @polkadot/keyring to enable Alice's stash account on dev chains</li> <li>Update @polkadot/util-crypto with smaller footprint</li></ul> <h1 id="_0-75-1-mar-29-2019"><a href="#_0-75-1-mar-29-2019" class="header-anchor">#</a> 0.75.1 Mar 29, 2019</h1> <ul><li>Start journey to 1.0</li></ul> <h1 id="_0-53-1-mar-29-2019"><a href="#_0-53-1-mar-29-2019" class="header-anchor">#</a> 0.53.1 Mar 29, 2019</h1> <ul><li><p>Change spelling to US English as per substrate master (1.0-rc1). Breaking changes as a result:</p> <ul><li>For extrinsic status results, if you have checked the type returns, i.e. <code>result.type === 'Finalised'</code> now check on the status for <code>result.status.isFinalized</code> or <code>result.status.isBroadcast</code>, ... (the <code>type</code> property is now accessible only on <code>result.status.type</code>)</li> <li>If using <code>subscribeFinalisedHeads</code> update this to <code>subscribeFinalizedHeads</code> (likewise <code>getFinalisedHead</code> should be updated to <code>getFinalizedHead</code> and <code>derive.bestNumberFinalized</code>)</li></ul></li> <li><p>The underlying ss58 address checksums have changed</p> <ul><li>The updated keyring with support for this has been made available</li> <li>All examples have been updated with sr25519 addresses (with the new checksums)</li></ul></li></ul> <h1 id="_0-52-1-mar-28-2019"><a href="#_0-52-1-mar-28-2019" class="header-anchor">#</a> 0.52.1 Mar 28, 2019</h1> <ul><li>Support queries to linked mapped storage (found in new staking interfaces)</li> <li>Add <code>derive.staking.controllers</code> to retrieve all active staking controllers</li> <li>Align types as per latest substrate master</li> <li>PeerInfo from system_peers does not have the index field anymore (dropped in substrate)</li> <li>Allow parsing of V3 metadata with DoubleMap support</li> <li>Check for single instances for api and types as they are loaded (assertSingletonPackage)</li></ul> <h1 id="_0-51-1-mar-25-2019"><a href="#_0-51-1-mar-25-2019" class="header-anchor">#</a> 0.51.1 Mar 25, 2019</h1> <ul><li>Support metadata V2 as per latest substrate master</li> <li>Update metadata with new types as per latest substrate master</li></ul> <h1 id="_0-50-1-mar-23-2019"><a href="#_0-50-1-mar-23-2019" class="header-anchor">#</a> 0.50.1 Mar 23, 2019</h1> <ul><li>Latest util-crypto (usage of WASM with JS fallbacks if not available)</li> <li>Update upstream @polkadot dependencies (for new crypto)</li></ul> <h1 id="_0-49-1-mar-20-2019"><a href="#_0-49-1-mar-20-2019" class="header-anchor">#</a> 0.49.1 Mar 20, 2019</h1> <ul><li>Fix large message signing on non-known nodes (default is now hashing, there has been enough time between upgrades)</li></ul> <h1 id="_0-48-1-mar-18-2019"><a href="#_0-48-1-mar-18-2019" class="header-anchor">#</a> 0.48.1 Mar 18, 2019</h1> <ul><li>Pull in new sr25519 capable keyring for dev nodes</li> <li>When using dev mode, it assumes that the node is the latest with derived sr25519 keys</li></ul> <h1 id="_0-47-1-mar-14-2019"><a href="#_0-47-1-mar-14-2019" class="header-anchor">#</a> 0.47.1 Mar 14, 2019</h1> <ul><li>Swap to publishing -beta.x on merge (non-breaking testing)</li></ul> <h1 id="_0-46-1-mar-01-2019"><a href="#_0-46-1-mar-01-2019" class="header-anchor">#</a> 0.46.1 Mar 01, 2019</h1> <ul><li>Extended type registration to now handle internal types as well. Additionally the built-in Extrinsic type can now we overridden with a custom version.</li> <li>Where <code>Extrinsic</code> and <code>Method</code> is used as types, consider importing <code>{ IMethod, IExtrinsic }</code> from <code>@polkadot/types/types</code>, especially in the cases where this is used from a <code>SubmittableExtrinsic</code></li> <li>The <code>typeRegistry</code> constant is now <code>getTypeRegistry()</code> as a function</li></ul> <h1 id="_0-45-1-feb-19-2019"><a href="#_0-45-1-feb-19-2019" class="header-anchor">#</a> 0.45.1 Feb 19, 2019</h1> <ul><li>Storage with option values now correctly return <code>Option<Type></code> and is indicated as such in the documentation</li></ul> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token comment">// old</span>
<span class="token keyword">const</span> ll <span class="token operator">=</span> <span class="token keyword">await</span> api<span class="token punctuation">.</span>query<span class="token punctuation">.</span>session<span class="token punctuation">.</span><span class="token function">lastLengthChange</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">'ll'</span><span class="token punctuation">,</span> ll <span class="token comment">/* BlockNumber */</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// would be 0 if not set yet</span>
<span class="token comment">// new</span>
<span class="token keyword">const</span> llo <span class="token operator">=</span> <span class="token keyword">await</span> api<span class="token punctuation">.</span>query<span class="token punctuation">.</span>session<span class="token punctuation">.</span><span class="token function">lastLengthChange</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">'llo'</span><span class="token punctuation">,</span> llo<span class="token punctuation">.</span><span class="token function">unwrapOr</span><span class="token punctuation">(</span><span class="token string">'not set'</span><span class="token punctuation">)</span> <span class="token comment">/* Option<BlockNumber> */</span><span class="token punctuation">)</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><h1 id="_0-44-1-feb-19-2019"><a href="#_0-44-1-feb-19-2019" class="header-anchor">#</a> 0.44.1 Feb 19, 2019</h1> <ul><li>Split primitives and types into separate folders. This should not affect external use since the exports remain the same, however does have an impact where classes are referenced directly. e.g.</li></ul> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token comment">// old (affected)</span>
<span class="token keyword">import</span> Method <span class="token keyword">from</span> <span class="token string">'@polkadot/types/Method'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> Signature <span class="token keyword">from</span> <span class="token string">'@polkadot/types/Signature'</span><span class="token punctuation">;</span>
<span class="token comment">// new locations</span>
<span class="token keyword">import</span> Method <span class="token keyword">from</span> <span class="token string">'@polkadot/types/primitive/Method'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> Signature <span class="token keyword">from</span> <span class="token string">'@polkadot/types/type/Signature'</span><span class="token punctuation">;</span>
<span class="token comment">// unaffected</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Method<span class="token punctuation">,</span> Signature <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@polkadot/types'</span><span class="token punctuation">;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><h1 id="_0-43-1-feb-14-2019"><a href="#_0-43-1-feb-14-2019" class="header-anchor">#</a> 0.43.1 Feb 14, 2019</h1> <ul><li>Introduces support for the new keyring with sr25519 support in addition to ed25519. While this does not change the exposed API, it is considered breaking since @polkadot/keyring has interface changes. (Unless needed, don't rush the upgrade)</li></ul> <h1 id="_0-42-1-jan-31-2019"><a href="#_0-42-1-jan-31-2019" class="header-anchor">#</a> 0.42.1 Jan 31, 2019</h1> <ul><li>Support for substrate hash signing with implVersion >= 18</li> <li>Changed signatures for Extrinsic signing, this should not have (much) of an impact since it is generally not used directly. SubmittableExtrinsic (as exposed by the API), supports the old-style use.</li></ul> <h1 id="_0-41-1-jan-26-2019"><a href="#_0-41-1-jan-26-2019" class="header-anchor">#</a> 0.41.1 Jan 26, 2019</h1> <ul><li>Support the V1 metadata specification from Substrate in addition to the currently testnet active V0 version</li></ul> <h1 id="_0-40-1-jan-16-2019"><a href="#_0-40-1-jan-16-2019" class="header-anchor">#</a> 0.40.1 Jan 16, 2019</h1> <ul><li>The API interfaces now require a WS-compatible provider, e.g. subscription support is a must. Previously the HTTPProvider could be use (although it was very limited in the interactions).</li></ul> <h1 id="_0-39-1-jan-11-2019"><a href="#_0-39-1-jan-11-2019" class="header-anchor">#</a> 0.39.1 Jan 11, 2019</h1> <ul><li>The Promise API now returns a <code>Promise<UnsubFunction></code> instead of <code>UnsubFunction</code> when making subscriptions.</li></ul> <h1 id="_0-38-1-jan-08-2019"><a href="#_0-38-1-jan-08-2019" class="header-anchor">#</a> 0.38.1 Jan 08, 2019</h1> <p>Substrate has been updated with a breaking new transaction format where the Index/Nonce is now encoded as a Compact. This change is being rolled out to both Alexander (Polkadot testnet) as well as Charred Cherry (Substrate testnet) - transactions between old and new are not compatible.</p> <h1 id="_0-37-1-jan-04-2019"><a href="#_0-37-1-jan-04-2019" class="header-anchor">#</a> 0.37.1 Jan 04, 2019</h1> <p>api-observable has been removed. This was only used in /apps and inconsistent with the api/rx and api/promise APIs. Future work will include derives like was included in api-observable into the base.</p> <p>Tuples now return single types when only one type is available, i.e. <code>(AccountId)</code> would now resolve as <code>AccountId</code>. The extra type wrapper adds no benefit to users here.</p> <h1 id="_0-36-1-jan-03-2019"><a href="#_0-36-1-jan-03-2019" class="header-anchor">#</a> 0.36.1 Jan 03, 2019</h1> <p>Api Promise has been updated in the way we deal with subscriptions. Previously a subscription returned <code>Promise<number></code> where the caller was to keep track of the id and use it in subsequent unsubscribes. Now any subscriptions return an unsubscribe/destroy function <code>(): void</code>, that is use for removing the subscriptions, e.g.</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token keyword">const</span> unsubscribe <span class="token operator">=</span> api<span class="token punctuation">.</span>query<span class="token punctuation">.</span>balance<span class="token punctuation">.</span><span class="token function">freeBalance</span><span class="token punctuation">(</span>Alice<span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token parameter">balance</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span><span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">unsubscribe</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// here we destroy the subscription</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><h1 id="_0-35-1-dec-20-2018"><a href="#_0-35-1-dec-20-2018" class="header-anchor">#</a> 0.35.1 Dec 20, 2018</h1> <p>Swapped to new metadata structures from Substrate. If the API is not working with your node, update Substrate to latest master branch. (Or 0.9.1 for Charred Cherry). Dropped support for old metadata as found as far back as BBQ Birch.</p> <h1 id="_0-34-1-dec-18-2018"><a href="#_0-34-1-dec-18-2018" class="header-anchor">#</a> 0.34.1 Dec 18, 2018</h1> <p>Changed the send signature (for future expansion of eg. events) to return <code>result: { status: ExtrinsicStatus }</code> instead of <code>status: ExtrinsicStatus</code>. For most cases where only status <code>type</code> checks are used, i.e. <code>status.type === 'Finalised'</code> this should not be a breaking change. Deep inspection of the status object however will need to adapt.</p> <h1 id="_0-33-1-dec-06-2018"><a href="#_0-33-1-dec-06-2018" class="header-anchor">#</a> 0.33.1 Dec 06, 2018</h1> <h1 id="_0-32-1-nov-21-2018"><a href="#_0-32-1-nov-21-2018" class="header-anchor">#</a> 0.32.1 Nov 21, 2018</h1> <h1 id="_0-31-1-oct-10-2018"><a href="#_0-31-1-oct-10-2018" class="header-anchor">#</a> 0.31.1 Oct 10, 2018</h1> <h1 id="_0-30-1-sep-27-2018"><a href="#_0-30-1-sep-27-2018" class="header-anchor">#</a> 0.30.1 Sep 27, 2018</h1> <h1 id="_0-29-1-sep-14-2018"><a href="#_0-29-1-sep-14-2018" class="header-anchor">#</a> 0.29.1 Sep 14, 2018</h1> <h1 id="_0-28-1-aug-11-2018"><a href="#_0-28-1-aug-11-2018" class="header-anchor">#</a> 0.28.1 Aug 11, 2018</h1> <h1 id="_0-15-1-aug-07-2018"><a href="#_0-15-1-aug-07-2018" class="header-anchor">#</a> 0.15.1 Aug 07, 2018</h1> <h1 id="_0-14-1-jun-23-2018"><a href="#_0-14-1-jun-23-2018" class="header-anchor">#</a> 0.14.1 Jun 23, 2018</h1> <h1 id="_0-13-1-may-29-2018"><a href="#_0-13-1-may-29-2018" class="header-anchor">#</a> 0.13.1 May 29, 2018</h1> <h1 id="_0-12-1-may-18-2018"><a href="#_0-12-1-may-18-2018" class="header-anchor">#</a> 0.12.1 May 18, 2018</h1> <h1 id="_0-11-1-may-16-2018"><a href="#_0-11-1-may-16-2018" class="header-anchor">#</a> 0.11.1 May 16, 2018</h1> <h1 id="_0-10-1-may-07-2018"><a href="#_0-10-1-may-07-2018" class="header-anchor">#</a> 0.10.1 May 07, 2018</h1> <h1 id="_0-9-1-apr-24-2018"><a href="#_0-9-1-apr-24-2018" class="header-anchor">#</a> 0.9.1 Apr 24, 2018</h1> <h1 id="_0-8-1-mar-15-2018"><a href="#_0-8-1-mar-15-2018" class="header-anchor">#</a> 0.8.1 Mar 15, 2018</h1> <h1 id="_0-7-1-jan-25-2018"><a href="#_0-7-1-jan-25-2018" class="header-anchor">#</a> 0.7.1 Jan 25, 2018</h1> <h1 id="_0-6-1-dec-03-2017"><a href="#_0-6-1-dec-03-2017" class="header-anchor">#</a> 0.6.1 Dec 03, 2017</h1> <h1 id="_0-5-1-nov-28-2017"><a href="#_0-5-1-nov-28-2017" class="header-anchor">#</a> 0.5.1 Nov 28, 2017</h1> <h1 id="_0-4-1-nov-19-2017"><a href="#_0-4-1-nov-19-2017" class="header-anchor">#</a> 0.4.1 Nov 19, 2017</h1> <h1 id="_0-3-1-nov-19-2017"><a href="#_0-3-1-nov-19-2017" class="header-anchor">#</a> 0.3.1 Nov 19, 2017</h1> <h1 id="_0-2-1-nov-18-2017"><a href="#_0-2-1-nov-18-2017" class="header-anchor">#</a> 0.2.1 Nov 18, 2017</h1></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/api/assets/js/app.c336d2d3.js" defer></script><script src="/api/assets/js/2.87a850f8.js" defer></script><script src="/api/assets/js/5.3d73fded.js" defer></script>
</body>
</html>