CocoShop theme development
  • 🚀Getting Started
    • Overview
    • Getting started
  • ⛓️Architecture
    • Overview
    • Layouts
    • Templates
      • index
      • collections
      • collection
      • product
      • 404
      • search
      • page
    • Section
      • Section schema
    • Config
    • Input settings
  • 💧Liquid
    • Basics
      • Operators
      • Truthy and Falsy
      • Whitespace Control
    • Tags
      • Control flow
      • Variable
      • Theme
    • Filters
    • Objects
      • site
      • collection
      • wallet
      • chain
      • product
      • attribute
      • connected_wallet
      • linklists
      • linklist
      • link
    • Functions
      • connectWallet
      • changeChain
      • disconnect
      • transfer
      • buy
  • 💫Others
    • Roadmap
Powered by GitBook
On this page
  1. Liquid
  2. Functions

connectWallet

PreviousFunctionsNextchangeChain

Last updated 2 years ago

The connectWallet function is used to connect to a crypto wallet such as Metamask.

When the function is executed, the following processing is performed

  1. request a connection to Metamask

  2. set up the chain when it is connected

  3. save the account and chainId in the cookie

  4. reload and update the object with the cookie

💧
connected_wallet