Browser — HCS‑15BrowserClient
- TypeScript
- Go
- Python
import type { DAppSigner } from '@hashgraph/hedera-wallet-connect';
import { HCS15BrowserClient } from '@hashgraphonline/standards-sdk';
async function run(signer: DAppSigner) {
const client = new HCS15BrowserClient({ network: 'testnet', signer });
const base = await client.createBaseAccount({ initialBalance: 1 });
const petal = await client.createPetalAccount({ basePrivateKey: base.privateKey, initialBalance: 0.5 });
console.log('Base:', base.accountId, 'Petal:', petal.accountId);
}
// Browser/wallet operations are TypeScript-only.
// In Go, use the server-side client directly — see the [Server](./server) page.
# Browser/wallet operations are TypeScript-only.
# In Python, use the server-side client directly — see the Server page.
Notes:
- The browser client reuses the same tx builders as Node and signs via the connected wallet.
verifyPetalAccountis available through the base client facilities.