CDP Frontend SDK
    Preparing search index...

    CDP Wallet Account implementation for Solana accounts.

    This class represents a Solana account within the CDP wallet ecosystem.

    Implements

    • WalletAccount
    Index

    Accessors

    • get address(): string

      Get the base58 encoded address of this account.

      Returns string

      The base58 encoded Solana address

    • get publicKey(): Uint8Array<ArrayBuffer>

      Get the public key bytes of this account.

      Returns Uint8Array<ArrayBuffer>

      A copy of the public key bytes

    • get chains(): readonly ["solana:mainnet", "solana:devnet"]

      Get the supported chains for this account.

      Returns readonly ["solana:mainnet", "solana:devnet"]

      Array of supported Solana chains

    • get features(): readonly [
          "solana:signAndSendTransaction",
          "solana:signTransaction",
          "solana:signMessage",
      ]

      Get the supported features for this account.

      Returns readonly [
          "solana:signAndSendTransaction",
          "solana:signTransaction",
          "solana:signMessage",
      ]

      Array of supported wallet standard features

    Constructors

    • Create a new CDP Wallet Account.

      Parameters

      • publicKey: Uint8Array

        The public key bytes for this account (must be exactly 32 bytes for Solana)

      Returns CdpWalletAccount

      If publicKey is null, undefined, or not exactly 32 bytes