Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arianee/core

Package Overview
Dependencies
Maintainers
8
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arianee/core

The Core class is a TypeScript class that provides an interface for signing messages and transactions on the Ethereum blockchain. It uses the [ethers library](https://ethers.org/), which is a popular library for interacting with Ethereum.

  • 0.2.0
  • npm
  • Socket score

Version published
Weekly downloads
81
decreased by-64.32%
Maintainers
8
Weekly downloads
 
Created
Source

@arianee/core

The Core class is a TypeScript class that provides an interface for signing messages and transactions on the Ethereum blockchain. It uses the ethers library, which is a popular library for interacting with Ethereum.

Usage

You can instanciante core with :

  • Mnemonic
  • Passphrase
  • PrivateKey

Example :

import { Core } from '@arianee/core';
Core.fromMnemonic(mnemonic);
Core.fromPassPhrase(passphrase);
Core.fromPrivateKey(privateKey);
Core.fromRandom();

The returned instance will have 2 method:

  • signMessage(message:string)
  • signTransaction(transaction:TransactionLike)
  • getAddress():string

If you need to implement core with an external wallet (like metamask), you need to instantiate the class with 2 functions:

import { Core } from '@arianee/core';
const core = new Core(signMessage, signTransaction, getAddress);

FAQs

Package last updated on 17 May 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc