Skip to content

message on mainnet? #2

@marketant

Description

@marketant

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;`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions