Docs: add a server-side quick-start for programmatic account creation (createAccount with suiPrivateKey)

Open Beginner friendly
#304 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript

Research direction

Update the getting-started documentation with a server-side example using the /account exports generateDelegateKey, createAccount, and addDelegateKey, followed by MemWal.create. Document the mainnet packageId and registryId in one place; done when a backend user can follow the quick-start without relying on the web Playground.

Written by the indexing model from the issue text.

Description

The /account export (generateDelegateKey, createAccount, addDelegateKey) supports server-side signing via suiPrivateKey, which is ideal for backends — but the getting-started only points to the web Playground (memory.walrus.xyz).

Ask: add a server-side quick-start:

const delegate = await generateDelegateKey();
const acc = await createAccount({ packageId, registryId, suiPrivateKey, suiClient, suiNetwork: "mainnet" });
await addDelegateKey({ packageId, accountId: acc.accountId, publicKey: delegate.publicKey, label: "backend", suiPrivateKey, suiClient });
const memwal = MemWal.create({ key: delegate.privateKey, accountId: acc.accountId, serverUrl: "https://relayer.memory.walrus.xyz" });

Also document the mainnet packageId / registryId in one place.

Reported while building "The Bitter Pundit" for Walrus Sessions 4.

Dominant language
TypeScript
Stars
107
Forks
37
Avg merge
3d 2h
Merged PRs (30d)
101

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MystenLabs/MemWal

All issues in MystenLabs/MemWal

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.