mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
28 lines
750 B
HTML
28 lines
750 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Title</title>
|
||
|
<script src="dist/umd/squid.js"></script>
|
||
|
<script>
|
||
|
|
||
|
const config = {
|
||
|
// web3Provider: web3 ? web3.currentProvider : null,
|
||
|
aquariusUri: "http://localhost:5000",
|
||
|
brizoUri: "http://localhost:8030",
|
||
|
parityUri: "http://localhost:9545",
|
||
|
secretStoreUri: "http://localhost:12001",
|
||
|
threshold: 0,
|
||
|
password: "unittest",
|
||
|
address: "0xed243adfb84a6626eba46178ccb567481c6e655d",
|
||
|
}
|
||
|
squid.Ocean
|
||
|
.getInstance(config)
|
||
|
.then(ocn => {
|
||
|
console.log(ocn)
|
||
|
})
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|