<?php
// include iota lib
require_once("autoload.php");
$mnemonic = new \IOTA\Crypto\Mnemonic(IOTA\Wallet::createMnemonic());
or
$mnemonic = new \IOTA\Crypto\Mnemonic('giant dynamic museum toddler six deny defense ostrich bomb access mercy blood explain muscle shoot shallow glad autumn author calm heavy hawk abuse rally');
$wallet = new \IOTA\Wallet($mnemonic);
$address_0 = $wallet->address();
$address_1 = $wallet->address(0, 1);
echo "WalletSeed: " . $wallet->getSeed();
echo "WalletMnemonic: " . $mnemonic;
echo "AddressPath: " . $address_0->getPathString();
echo "AddressBech32: " . $address_0->getAddressBech32();
echo "Balance: " . $address_0->getBalance();
echo "AddressPath: " . $address_1->getPathString() . PHP_EOL;
echo "AddressBech32: " . $address_1->getAddressBech32() . PHP_EOL;
echo "Balance: " . $address_1->getBalance() . PHP_EOL;
Please find other examples in the examples folder.
<- Back to Overview