You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@slide-computer/signer

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slide-computer/signer

JavaScript and TypeScript library to interact with signers on the Internet Computer

3.16.0
latest
Source
npm
Version published
Weekly downloads
709
4.11%
Maintainers
1
Weekly downloads
 
Created
Source

@slide-computer/signer

JavaScript and TypeScript library to interact with signers on the Internet Computer.

Installation

Using Signer:

npm i --save @slide-computer/signer

In the browser:

import { Signer } from "@slide-computer/signer";

To get started with the signer, run

// Create transport with e.g. "@slide-computer/signer-web"
const signer = new Signer({transport});

Make sure to connect before using signer if the transport requires a connection

if (transport.connection && !transport.connection.connected) {
    await transport.connection.connect();
}

The signer can for example get accounts with

const accounts = await signer.accounts();

Optionally, the permission can be requested beforehand to get accounts

const permissions = await signer.requestPermissions([createAccountsPermissionScope()]);

Making canister calls

The @slide-computer/signer-agent package offers SignerAgent as drop in replacement of HttpAgent.

Besides making canister calls through signers that need to be approved by users, calls can also be made after requesting a delegation from the signer with the delegation() method. This delegation can then be used to create a DelegationIdentity which in turn can be used with the HttpAgent.

List of available transports

Efforts are made to standardize the transports, for example ICRC-29 and ICRC-94. For wallets that do not implement a standardized transport method, additional polyfill packages are available.

Standardized packagesSupported signers
@slide-computer/signer-webNFID, Oisy, Slide
@slide-computer/signer-extensionPrimeVault
Polyfill packagesSupported signers
@slide-computer/signer-transport-plugPlug
@slide-computer/signer-transport-stoicStoic
@slide-computer/signer-transport-auth-clientInternet Identity

Keywords

internet computer

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts