It is PHP API client for VIZ/STEEM/GOLOS/WHALESHARES blockchain
Github or packagist with MIT license. Author @t3ran13 and active contributor
@semasping
Actual list of VIZ nodes are:
It was not working correct before and was fixed. Now you can use InitConnector for convenient simultaneous work with few chains.
$connector = InitConnector::getConnector(ConnectorInterface::PLATFORM_VIZ);
It was deprecated and does not wark in VIZ anymore.
It is the same as custom_json in STEEM/GOLOS/WHALESHARES, but in VIZ it has other name
Example of using
$connector = InitConnector::getConnector(ConnectorInterface::PLATFORM_VIZ);
$chainName = $connector->getPlatform();
/** @var CommandQueryData $tx */
$tx = Transaction::init($connector);
$tx->setParamByKey(
'0:operations:0',
[
'custom',
[
'required_auths' => [],
'required_posting_auths' => ['guest123'],
'id' => 'YOUR_ID',
'json' => json_encode(YOUR_JSON)
]
]
);
Transaction::sign(
$chainName,
$tx,
[
'posting' => '5POSTING_KEY',
]
);
$command = new BroadcastTransactionSynchronousCommand($connector);
$answer = $command->execute(
$tx
);
Actual list of STEEM HTTPS nodes are:
Each chain has own class with operations IDs and fields types:
Thanks of this each chain can has difference in operations from other and it is easy to add this changes.
It is best way for dubag serialiaer with GetTransactionHex api method.
You have to prepare Tx without signature and send it to node and witch back serialized hex string.
$chainName = $connector->getPlatform();
/** @var CommandQueryData $tx */
$tx = Transaction::init($connector);
$tx->setParamByKey(// some data
);
$command = new GetTransactionHexCommand($connector);
$answer = $command->execute(
$tx
);
echo PHP_EOL . ''
. print_r($answer, true) . ''
;
This types use for serialization Tx. Now it is easy to add some operation with this types.
It was bug with serialization Tx with 2 and more beneficiaries. It works correct now.
It is better with each commit
Commits were done by me in master branch
Compare v5.1.1 - v5.2.0