-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Used very long time the old php-community version and tried to switch to tanglePHP. Sadly iota:mainnet seems not to work? I am missing something here?
Also there is no messageID avialable any more out of the respones.
`<?php
// include tanglePHP autoload from tanglePHP/bundle
require_once("autoload.php");
use tanglePHP\Network\Connect;
use tanglePHP\SingleNodeClient\Action\sendMessage;
// create network connection
$network = new Connect('iota:mainnet');
//
echo $ret = (new sendMessage($network->singleNode))->message('INDEXVAR', 'MSGVAR')
->setting('checkTransaction', false)
->run();
// print single information
echo PHP_EOL;
echo $ret->explorerUrl . PHP_EOL;
echo $ret->blockId . PHP_EOL;
echo $ret->check . PHP_EOL;
// print network informations
echo $ret->networkInfo;`