Documentation
    Preparing search index...

    Interface EnokiWallet

    interface EnokiWallet {
        get accounts(): ReadonlyWalletAccount[];
        get chains(): `sui:${string & {}}`[];
        get features(): StandardConnectFeature & StandardDisconnectFeature & StandardEventsFeature & SuiSignTransactionFeature & SuiSignAndExecuteTransactionFeature & SuiSignPersonalMessageFeature & EnokiGetMetadataFeature & EnokiGetSessionFeature;
        get icon(): | `data:image/svg+xml;base64,${string}`
        | `data:image/webp;base64,${string}`
        | `data:image/png;base64,${string}`
        | `data:image/gif;base64,${string}`;
        get name(): string;
        get provider(): AuthProvider;
        get version(): "1.0.0";
    }

    Implements

    Index

    Accessors

    • get accounts(): ReadonlyWalletAccount[]

      Accounts that the app is authorized to use.

      This can be set by the Wallet so the app can use authorized accounts on the initial page load.

      The "@wallet-standard/features".ConnectFeature | standard:connect feature should be used to obtain authorization to the accounts.

      The "@wallet-standard/features".EventsFeature | standard:events feature should be used to notify the app if the value changes.

      Returns ReadonlyWalletAccount[]

    • get chains(): `sui:${string & {}}`[]

      Chains supported by the Wallet.

      A chain is an IdentifierString which identifies a blockchain in a canonical, human-readable format. CAIP-2 chain IDs are compatible with this, but are not required to be used.

      Each blockchain should define its own chains by extension of the Wallet Standard, using its own namespace. The standard and experimental namespaces are reserved by the Wallet Standard.

      The "@wallet-standard/features".EventsFeature | standard:events feature should be used to notify the app if the value changes.

      Returns `sui:${string & {}}`[]

    • get icon(): | `data:image/svg+xml;base64,${string}`
      | `data:image/webp;base64,${string}`
      | `data:image/png;base64,${string}`
      | `data:image/gif;base64,${string}`

      Icon of the Wallet. This may be displayed by the app.

      Must be read-only, static, and canonically defined by the wallet extension or application.

      Returns
          | `data:image/svg+xml;base64,${string}`
          | `data:image/webp;base64,${string}`
          | `data:image/png;base64,${string}`
          | `data:image/gif;base64,${string}`

    • get name(): string

      Name of the Wallet. This may be displayed by the app.

      Must be read-only, static, descriptive, unique, and canonically defined by the wallet extension or application.

      Returns string

    • get version(): "1.0.0"

      Version of the Wallet Standard implemented by the Wallet.

      Must be read-only, static, and canonically defined by the Wallet Standard.

      Returns "1.0.0"