• Introduction
  • Detecting the Provider
  • Establishing a Connection
  • Methods
  • Events
    • #accountsChanged
    • #chainChanged
  • Common Links
  • Error
  • Update
  • FAQ
  • Introduction
  • Detecting the Provider
  • Establishing a Connection
  • Methods
  • Events
    • #accountsChanged
    • #chainChanged
  • Common Links
  • Error
  • Update
  • FAQ

Events

accountsChanged#

window.chia.on("accountsChanged", (accounts: string[]) => {
console.log(accounts?.[0]);
});

chainChanged#

window.chia.on("chainChanged", () => window.location.reload());
Methods
Common Links

2022 © GOBY