@types/ethjs-signer
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Installation

npm install --save @types/ethjs-signer

Summary

This package contains type definitions for ethjs-signer (https://github.com/ethjs/ethjs-signer/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ethjs-signer.

index.d.ts

/// <reference types="node" />

/**
 * Signs a raw transaction and return it either as a serialized hex string or raw tx object.
 */
export function sign(transaction: object, privateKey: string, toObject?: false): string;
export function sign(transaction: object, privateKey: string, toObject: true): any[];

/**
 * Recovers a ECDSA public key from a raw transaction.
 */
export function recover(rawTx: string | Buffer, v: number, r: Buffer, s: Buffer): Buffer;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Bryson Thill.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ethjs-signer

Weekly Downloads

7

Version

0.1.2

License

MIT

Unpacked Size

3.56 kB

Total Files

5

Last publish

Collaborators

  • types