const wallet = client.identities.wallet
const created = await wallet.create(identityId, {
network: "eip155:84532", // Base Sepolia, the default
policy: { per_tx_cap_micro_usd: 500_000, daily_cap_micro_usd: 20_000_000, low_balance_micro_usd: null },
})
const current = await wallet.get(identityId) // the testnet wallet; balance_micro_usd is live
await wallet.updatePolicy(identityId, { per_tx_cap_micro_usd: 1_000_000 })
await wallet.freeze(identityId)
await wallet.unfreeze(identityId)
// The same persona's mainnet wallet, once the organization has enabled mainnet.
const mainnet = await wallet.create(identityId, { network: "eip155:8453", policy: { per_tx_cap_micro_usd: 250_000 } })
await wallet.get(identityId, { network: "eip155:8453" })
await wallet.freeze(identityId, { network: "eip155:8453" })