Skip to content

Instantly share code, notes, and snippets.

@jimmychu0807
Created March 4, 2020 11:58
Show Gist options
  • Save jimmychu0807/b397214dfeb994728cad6a6b3c19e3c4 to your computer and use it in GitHub Desktop.
Save jimmychu0807/b397214dfeb994728cad6a6b3c19e3c4 to your computer and use it in GitHub Desktop.
Markdium-用 Polkadot-JS API 輕鬆搭建 Substrate 前端
// 訂閱著該數值
const unsub = await api.query.balances.freeBalance(ADDR, balance => {
console.log(`balance of ${balance}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment