Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Feb 21, 2024. It is now read-only.
/purserPublic archive

Interact with Ethereum wallets easily

License

NotificationsYou must be signed in to change notification settings

JoinColony/purser

Repository files navigation

Purser

Purser simplifies interaction with Ethereum based wallets. It supports both hardware and software wallets and provides a consistent and predictable interface to work with during dApp development.

Purser is:

Simple - Has an easy and intuitive API. Get started in minutes!

Predictable - Uses the same commands for all wallet types.

Sane - Maintains developer health by using proper error messages, validations and sanitisers.

Plug & Play - Supports Hardware (Ledger, Trezor) and Software (ethers.js) wallets out of the box.

Purser was brought to you by the fine folks atColony. To learn more about Colony, you can visitthe website or read thewhite paper.

Quickstart (software wallet)

To use thesoftware wallet (based on theethers wallet):

Installation

npm install @purser/software

Usage

Create a new wallet

import{create}from'@purser/software'constwallet=awaitcreate();console.log(wallet);// { address: '...', privateKey: '...', publicKey: '...' }

or open an existing one (based on the mnemnonic)

import{open}from'@purser/software'constwallet=awaitopen({mnemonic:'...'});console.log(wallet);// { address: '...', privateKey: '...', publicKey: '...' }

Documentation

Please see thedocumentation with detailed examples and explanations.

Packages

Purser is a monorepo consisting of a collection of Ethereum wallet libraries:

To build and release

In the root directory:

npm inpm run bootstrapnpm run buildnpm run publish

To clean detritus and reset the repository:

./node_modules/.bin/lerna cleannpm run bootstrap

The future

We plan to add support more hardware wallets and other features that will make wallet interactions even easier. Stay tuned!

Contributing

We welcome all contributions to Purser. You can help by adding support for new wallet types, testing existing wallets, or improving the documentation.

Please read ourContributing Guidelines for how to get started.

License

The purser monorepo and each individual purser library areMIT licensed.


[8]ページ先頭

©2009-2025 Movatter.jp