• Get a Casper Account from the snap.

    Parameters

    • addressIndex: number = 0

      Address index wanted. Default to 0.

    • snapId: string = SNAP_ID

      ID of the snap. Default to the npm lib.

    Returns Promise<PublicKey>

    A public key or throw an error.