Skip to content

Instantly share code, notes, and snippets.

@ryanswrt
Created August 14, 2019 06:29
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/27885e67697eadff5b6f0b5310240705 to your computer and use it in GitHub Desktop.
Save ryanswrt/27885e67697eadff5b6f0b5310240705 to your computer and use it in GitHub Desktop.
const publicKey = Buffer.from(wallet.publicKey, "binary").toString("hex");
fetch("https://faucet.perlin.net", {
method: "POST",
body: JSON.stringify({
address: publicKey
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment