forked from tommycet/proofworks-genlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_studionet.js
More file actions
21 lines (17 loc) · 732 Bytes
/
Copy pathtest_studionet.js
File metadata and controls
21 lines (17 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { createClient } from "genlayer-js";
import { simulator } from "genlayer-js/chains";
import fs from "fs";
// Read the keystore from the CLI
const keystore = JSON.parse(fs.readFileSync("/home/user/.genlayer/keystores/default.json", "utf-8"));
// Actually, let's use a simpler random account for genlayer-js to sign.
import { createAccount } from "genlayer-js";
const account = createAccount();
const client = createClient({
chain: simulator,
endpoint: "https://studio.genlayer.com/api", // guess or localnet?
});
async function main() {
console.log("Account:", account.address);
// Well, wait. It might be easier to use the python test suite since the python test suite already covers 89 cases.
}
main();