hasTokenAccount()
SIP Protocol API Reference v0.7.2
SIP Protocol API Reference / hasTokenAccount
Function: hasTokenAccount()
Section titled “Function: hasTokenAccount()”hasTokenAccount(
connection,stealthAddress,mint):Promise<boolean>
Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:11710
Check if a stealth address already has an Associated Token Account
Parameters
Section titled “Parameters”connection
Section titled “connection”Connection
Solana RPC connection
stealthAddress
Section titled “stealthAddress”string
Stealth address (base58)
PublicKey
Token mint
Returns
Section titled “Returns”Promise<boolean>
True if ATA exists