Skip to content

dream-mo/AntOpenAllianceChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AntOpenAllianceChain

蚂蚁链开放联盟链 HTTP接入方式 PHP SDK

使用

composer require dreammo/ant-open-alliance-chain
<?php

require_once "../vendor/autoload.php";

$request = \Dreammo\AntOpenAllianceChain\Request::getInstance('accessId', 'accessKeyContent');
// 开启握手获取通信token
$isOk = $request->shakeHand();
if (!$isOk) {
    die("握手失败");
}
// 查看token值
var_dump($request->getShakeHandToken());
$client = new \Dreammo\AntOpenAllianceChain\Client($request);
// 查看最新区块信息
var_dump($client->queryLastBlock());

About

蚂蚁链开放联盟链 HTTP接入方式 PHP SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages