Last active
January 21, 2021 02:45
-
-
Save qianbin/f282193563dfcf4692a266123c82a027 to your computer and use it in GitHub Desktop.
Connex playground in browser
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
// copy and run following lines into your browser dev console, | |
// you'll get connex ready | |
const connex = await (() => { | |
const script = document.createElement('script') | |
script.src = 'https://unpkg.com/@vechain/connex@2' | |
document.body.appendChild(script) | |
return new Promise((resolve, reject) => { | |
script.onload = () => { | |
resolve(new Connex({ | |
node: 'https://testnet.veblocks.net', | |
network: 'test' | |
})) | |
} | |
script.onerror = err => reject(err) | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment