Create Your First Account

To start interacting with KeetaNet, you’ll first need to create an account. Accounts are based on cryptographic key pairs, and they’re derived from a secure seed.

This page shows you how to generate a seed, turn it into an account, and connect that account to the Keeta test network.

Want to learn more about what an account is and how it works? Read: What is an Account →

Generate a Seed

The KeetaNet SDK includes utilities for generating secure random seeds. These seeds are used to create key pairs — think of them as the starting point for your identity on the network.

Here’s how to generate one and use it:

import * as KeetaNet from "@keetanetwork/keetanet-client";

async function main() {
  // Generate a secure random seed
  const seed = KeetaNet.lib.Account.generateRandomSeed({ asString: true });
  console.log("Generated seed:", seed);

  // Create an account using the generated seed
  const account = KeetaNet.lib.Account.fromSeed(seed, 0);

  // Connect to the Keeta test network with this account
  const userClient = KeetaNet.UserClient.fromNetwork("test", account);
  console.log("Public key:", account.publicKeyString.toString());
}

main().catch(console.error);

How it works

  • generateRandomSeed() creates a strong, random seed.

  • fromSeed(seed, 0) derives your first account (index 0) from that seed.

  • UserClient.fromNetwork("test", account) connects you to the testnet using your new account.

  • You can use this client to send transactions, fetch chain data, or interact with the ledger.

Now you are ready to start sending your first transaction:

Last updated