Socket
Socket
Sign inDemoInstall

api-xps3-eth-contract

Package Overview
Dependencies
122
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    api-xps3-eth-contract

XPS3 module to interact with Ethereum smart contracts.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

xps3-eth-contract

NPM Package Dependency Status Dev Dependency Status

This is a sub-package of xps3.

This is the contract package used in the web3-eth package.

Please read the documentation for more.

Installation

Node.js

npm install xps3-eth-contract

Usage

const Web3EthContract = require('xps3-eth-contract');

// Set provider for all later instances to use
Web3EthContract.setProvider('ws://localhost:8546');

const contract = new Web3EthContract(jsonInterface, address);
contract.methods.somFunc().send({from: ....})
.on('receipt', function(){
    ...
});

Types

All the TypeScript typings are placed in the types folder.

FAQs

Last updated on 20 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc