Create and fund a Keeta wallet
When to use
Use for a new wallet, deterministic account recovery, or preparing an address to receive a known Keeta-native token. Ask whether the user intends test or main; never infer the network from an address or previous conversation.
SDK steps
Install and import
@keetanetwork/keetanet-client.Generate a seed only for a new wallet:
import * as KeetaNet from '@keetanetwork/keetanet-client'; const seed = KeetaNet.lib.Account.generateRandomSeed({ asString: true }); const account = KeetaNet.lib.Account.fromSeed(seed, 0); const userClient = KeetaNet.UserClient.fromNetwork('test', account); const address = account.publicKeyString.get();For recovery, load the seed from an approved secret store and call
Account.fromSeed(seed, index). Do not print, log, commit, or transmit the seed.Confirm the public address, network, token address, and expected base-unit amount before requesting funds from a known sender.
After the sender reports completion, verify with
await userClient.balance(token)orawait userClient.allBalances().
There is no documented universal funding method. Faucets are environment-specific services, not wallet creation APIs. Do not guess a faucet URL or claim that a new account is funded.
Confirmations
- Confirm
testormainbefore constructingUserClient. - Confirm whether this is a new seed or recovery of an existing seed and index.
- Show only the public address to the user.
- Confirm the exact token identifier and base-unit amount before sharing a funding request.
Failures
- Stop if secure seed storage is unavailable.
- If
fromNetworkcannot connect, report the selected network and error; do not silently switch networks. - If the balance remains unchanged, return the address, token, and observed balance. Do not resubmit an unknown transfer.
- A paused or unavailable test network is not evidence that account creation failed; local key derivation and network funding are separate steps.
Related skills
- Use multi-asset-balances to inspect funds.
- Use send-receive-tokens for a transfer.
- Apply spend-policy before enabling agent-initiated value movement.