Skip to main content
Version: 2.2.1

GemWallet API

Introduction

Recommended Reading

Before reading this section, make sure that you have the GemWallet extension installed. You can have a read to the Getting Started section.

The GemWallet API is used to bridge communication between your website and the GemWallet extension.

We provide two ways of installing the extension:

For browser-based applications

Install the packaged library via script tag using cdnjs, swapping in the desired version number for {version}:

<script src="https://unpkg.com/@gemwallet/api@{version}/umd/gemwallet-api.js"></script>

After adding the library to your web pages using GemWallet, you will need to import the proper functions as explained in the guide here.

For Node.js applications

You can either:

  • Install the module using npm: npm install @gemwallet/api

or

  • Install the module using yarn: yarn add @gemwallet/api

When the library is installed, you will need to import the proper functions as explained in the guide here.