Skip to content

A PHP wrapper for the polygonscan.com api to fetch data and metadata from the polygon blockchain

License

Notifications You must be signed in to change notification settings

baumann-at/php-polygonscan-api

 
 

Repository files navigation

Polygonscan PHP API

PHP wrapper for the Polygonscan API - forked from https://github.com/maslakoff/php-etherscan-api

License: MIT

Official API Documentation

Create API Key (optional)

Requirements

The minimum requirement by Polygonscan API is that your Web server supports PHP 5.6.

Installation

To install Polygonscan PHP API package you can run command:

composer require baumann-at/php-polygonscan-api:dev-master

Usage

Mainnet

$client = new \Polygonscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V');
$client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');

For testnet usage

Supported:

  • mumbai
$client = new \Polygonscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V', PolygonscanAPIConf::TESTNET_MUMBAI);
$client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');

About

A PHP wrapper for the polygonscan.com api to fetch data and metadata from the polygon blockchain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%