Start Developing
Installation and Type Support
npm install @keetanetwork/keetanet-clientUsing the SDK in NodeJS
import * as KeetaNet from '@keetanetwork/keetanet-client';const signer = KeetaNet.lib.Account.fromSeed(mySeed, 0);
const client = KeetaNet.UserClient.fromNetwork('test', signer);Using the SDK in the Browser
<html>
<head>
<script src="https://static.test.keeta.com/keetanet-browser.js"></script>
</head>
<body>
<script>
// Generate a random seed
const seed = KeetaNet.lib.Account.generateRandomSeed({ asString: true });
// Create an account from the seed
const account = KeetaNet.lib.Account.fromSeed(seed, 0);
// Connect to the test network
const client = KeetaNet.UserClient.fromNetwork('test', account);
// Fetch and log some chain info
client.chain().then(console.debug);
</script>
</body>
</html>
Last updated