-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
30 lines (27 loc) · 1.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/eos.min.js"
integrity="sha512-vNyLnOEb7uFmEtVbLnyZQ9/k4zckM2Vu3jJOKq6XfWEVZG0yKcjDExVN4EQ7e3F+rePWRncMolI2xFi/3qo62A=="
crossorigin="anonymous"></script>
<script>
eos = Eos(
{
contractName: "spore.ctr", // Contract name
contractSender: "tester", // User executing the contract (should be paired with private key)
chainId : "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f",
clientConfig: {
keyProvider: ['5JPgSSJkRDThqLqYVuJKfURQ4h5FoEKRtQEaSuKjGEcxZpYbWNp'],//['5KGFY9NmRraPRAcYPJVf1TSarQGE8XVaNLFVFKjjquczScxuUi4'], // Your private key
httpEndpoint: 'http://127.0.0.1:8888' // EOS http endpoint
}
}
)
console.log('getblock', eos.getBlock())
</script>
<meta charset="utf-8">
<title>EOSSpore</title>
</head>
<body>
<div id="app"></div>
</body>
</html>