Skip to content

Instantly share code, notes, and snippets.

@PastaPastaPasta
Created December 31, 2019 04:48
Show Gist options
  • Save PastaPastaPasta/e27091c8930d4ce965eeeb980b33ccb1 to your computer and use it in GitHub Desktop.
Save PastaPastaPasta/e27091c8930d4ce965eeeb980b33ccb1 to your computer and use it in GitHub Desktop.
getID.js dash evo script
const DashJS = require("dash");
const sdkOpts = {
network: "testnet",
mnemonic: "goat hobby relief include armor tag item flash where lesson gadget end",
};
const sdk = new DashJS.SDK(sdkOpts);
const getIdentity = async function () {
await sdk.isReady();
const platform = sdk.platform;
console.log(await sdk.platform.identities.get("BWrPQMGUX4M9f32h6nANoCzhrEBcHkPBqAyU5VengZ6R"));
};
getIdentity();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment