Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.66 KB

File metadata and controls

51 lines (35 loc) · 1.66 KB

IOTA.php

Discord Twitter
Apache-2.0 license IOTA >PHP 8

Examples (Faucet Client)

Testnet tokens can only be used for testing within the chrysalis testnet

Please do not claim tokens if you do not need them and return tokens you do not need. Testnet tokens have no value!

Include and create a faucet client

<?php
  // include iota lib
  require_once("../iota.php");
  // create client
  $client = new iota\client\faucet();

get

  echo $client->get('atoi1qpszqzadsym6wpppd6z037dvlejmjuke7s24hm95s9fg9vpua7vluehe53e');

send

  $seed           = iota::Ed25519Seed_fromMnemonic("giant dynamic museum toddler six deny defense ostrich bomb access mercy blood explain muscle shoot shallow glad autumn author calm heavy hawk abuse rally");
  echo $client->send($seed, 0, 1000000, iota::createIndexation("#iota.php", "transaction faucet test! follow me on Twitter @IOTAphp"));


Additional Examples

Please find other examples in the examples folder.


<- Back to Overview