Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.58 KB

File metadata and controls

52 lines (32 loc) · 1.58 KB

IOTA.php

Discord Twitter
Apache-2.0 license IOTA >PHP 8

Basics examples (Transfer)

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');

Send transfer

  $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, "atoi1qpszqzadsym6wpppd6z037dvlejmjuke7s24hm95s9fg9vpua7vluehe53e", 1000000, iota::createIndexation("#iota.php", "transaction test! follow me on Twitter @IOTAphp"));

Get funds on testnet

Use faucet client

Or visit: https://faucet.testnet.chrysalis2.com/


Additional Examples

Please find other examples in the examples folder.


<- Back to Overview