Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.69 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.69 KB

Crypt example PHP

This repository contains PHP scripts that enable to generate MetaHash addresses, check its balance and see the full transaction history. Besides, crypt_example.php script describes methods allowing to create and send transactions as well as to obtain information on transaction via its hash. To learn more about all operations listed above please read the following articles: Getting started with Metahash network, Creating transactions and Operations with MetaHash address.

There are 2 ways of working with the script:

  1. Using the extension for php mhcrypto Read more
  2. Using the php library of mdanter/ecc Read more

You can use the path that suits you.

Requirements

Basic requirements

  • PHP 7.1+
  • ext-gmp
  • ext-curl

Additional requirements for mhcrypto extension

Additional requirements for mdanter/ecc library

  • composer
  • mdanter/ecc (0.5.0)

Usage

php crypt_example.php [params]

Repository contains demo page index.html. In order to work with this demo page you need to have an installed web server.

API

Read more