Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.17 KB

File metadata and controls

47 lines (32 loc) · 1.17 KB

IOTA.php

Discord Twitter
Apache-2.0 license IOTA >PHP 8

Basics examples (Peers)

Include and create a client

<?php
  // include iota lib
  require_once("../iota.php");
  // create client
  $client = new iota('https://api.lb-0.testnet.chrysalis2.com');

Get peers list

  $result = $client->peers();
  #print_r($result);

Get pear

  echo $client->peer((string) $peerId);

Additional Examples

Please find other examples in the examples folder.


<- Back to Overview