Skip to content

PHP API查询数据 #5

@py520

Description

@py520
$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");

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