Skip to content

generateStealthMetaAddress()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / generateStealthMetaAddress

generateStealthMetaAddress(chain, label?): object

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4178

Generate a new stealth meta-address keypair for receiving private payments

Automatically dispatches to the correct curve implementation based on chain.

  • secp256k1 for: ethereum, polygon, arbitrum, optimism, base, bitcoin, zcash
  • ed25519 for: solana, near, aptos, sui

ChainId

Target blockchain network

string

Optional human-readable label

object

Stealth meta-address and private keys

metaAddress: StealthMetaAddress

spendingPrivateKey: `0x${string}`

viewingPrivateKey: `0x${string}`

If chain is invalid