New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

polygonscan-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polygonscan-api

API to polygonscan with a simple interface

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Polygonscan API

Development of a NEXTGEN Version has started - please stand by

A way to access the polygonscan.com api using promises. Fetch a diverse set of information about the blockchain.

Mainnet

var api = require("polygonscan-api").init("YourApiKey");
var balance = api.account.balance("0x0000000000000000000000000000000000001010");
balance.then(function (balanceData) {
  console.log(balanceData);
});

For testnet usage

Supported:

Latest

// apikey, network, timeout
var api = require('polygonscan-api').init('YourApiKey','mumbai'. '3000');

Install

npm install polygonscan-api --save

API Documentation

Development workflow

  • npm test - runs tests
    • npm run posttest - starts the linter
  • npm run lint - preconfigured linter
  • npm run docs - generates the apidocs
  • npm run bundle - builds a new bundle
  • npm run preversion - Steps before we create a new Tag
    • lint
    • changelog
  • npm run pages - pushes generated apidocs to the server
  • postversion - after generating a new version, push the tag to the server
  • npm run changelog - generates a changelog and pushes it

Keywords

maticscan

FAQs

Package last updated on 07 Sep 2021

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