Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
contract-example.php File Reference

Go to the source code of this file.

Variables

const IS_PUBLIC TRUE
 
 $addressAtKovan = '0xdacb85f3a6f12ca7893f887f875064880ce14d7d'
 
 $exampleHash = "0x6139633364613535613365333161396433353334353934376261323439353232"
 
 $abi
 
 try
 
 $hash = new EthD32($exampleHash)
 
 $register_drupal = new SmartContract($abi, $addressAtKovan, $eth)
 
 $test = $register_drupal->validateUserByHash($hash)
 

Variable Documentation

◆ $abi

◆ $addressAtKovan

$addressAtKovan = '0xdacb85f3a6f12ca7893f887f875064880ce14d7d'

Definition at line 31 of file contract-example.php.

◆ $exampleHash

$exampleHash = "0x6139633364613535613365333161396433353334353934376261323439353232"

Definition at line 34 of file contract-example.php.

◆ $hash

$hash = new EthD32($exampleHash)

Definition at line 193 of file contract-example.php.

◆ $register_drupal

$register_drupal = new SmartContract($abi, $addressAtKovan, $eth)

Definition at line 196 of file contract-example.php.

◆ $test

$test = $register_drupal->validateUserByHash($hash)

◆ IS_PUBLIC

const IS_PUBLIC TRUE

Definition at line 9 of file contract-example.php.

◆ try

try
Initial value:
{
$eth = new Ethereum('https://kovan.infura.io/drupal')
Definition: Abi.php:3

Definition at line 190 of file contract-example.php.