Skip to content

Instantly share code, notes, and snippets.

@ryanswrt
Last active July 25, 2019 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanswrt/1718c49b8015aca81ad6495e43d49e3f to your computer and use it in GitHub Desktop.
Save ryanswrt/1718c49b8015aca81ad6495e43d49e3f to your computer and use it in GitHub Desktop.
// First get a working wavelet client
const [client, node, clientErr] = useWavelet('https://testnet.perlin.net');
// To get a Wavelet Account
const [account, accountErr] = useAccount(client, 'yourprivatekey');
// To get a Wavelet Contract, and register callbacks
const [contract] = useContract(client, 'yourcontractaddr', onUpdate, onLoad);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment