generateStealthMetaAddress()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / generateStealthMetaAddress
Function: generateStealthMetaAddress()
Section titled “Function: 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
Parameters
Section titled “Parameters”Target blockchain network
label?
Section titled “label?”string
Optional human-readable label
Returns
Section titled “Returns”object
Stealth meta-address and private keys
metaAddress
Section titled “metaAddress”metaAddress:
StealthMetaAddress
spendingPrivateKey
Section titled “spendingPrivateKey”spendingPrivateKey:
`0x${string}`
viewingPrivateKey
Section titled “viewingPrivateKey”viewingPrivateKey:
`0x${string}`
Throws
Section titled “Throws”If chain is invalid