Closed py520 closed 6 years ago
$neb = new Neb(new HttpProvider("https://testnet.nebulas.io")); $api = $neb->api; 上面这两句能打印出来 echo $api->getNebState(), PHP_EOL; 从这里开始就输出没有东西了,这是为什么, $resp = $api->getAccountState("n1H2Yb5Q6ZfKvs61htVSV4b1U2gr2GA9vo6"); $respObj = json_decode($resp); var_dump($respObj);die; $nonce = $respObj->result->nonce; $resp = $api->call("n1JmhE82GNjdZPNZr6dgUuSfzy2WRwmD9zy", "n1JmhE82GNjdZPNZr6dgUuSfzy2WRwmD9zy", "100000", $respObj->result->nonce + 1, "200000", "200000");