Created
December 31, 2019 04:48
-
-
Save PastaPastaPasta/e27091c8930d4ce965eeeb980b33ccb1 to your computer and use it in GitHub Desktop.
getID.js dash evo script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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