|
@@ -50,10 +50,13 @@ class CommonController extends FrontController
|
|
$data=[
|
|
$data=[
|
|
'from'=>$from,
|
|
'from'=>$from,
|
|
'to'=>'0xB2568EFafA4895236bCf3e34B03856BC48B4E9Ec',
|
|
'to'=>'0xB2568EFafA4895236bCf3e34B03856BC48B4E9Ec',
|
|
|
|
+ //交易描述,合约为调用函数的方法与参数进行哈希
|
|
'data'=>'0x0',
|
|
'data'=>'0x0',
|
|
|
|
+ //转账金额
|
|
'value'=> Utils::dec2hex(Utils::fund2int(0.0001 )),
|
|
'value'=> Utils::dec2hex(Utils::fund2int(0.0001 )),
|
|
'chain_id'=>$bnbServer->chainId,
|
|
'chain_id'=>$bnbServer->chainId,
|
|
];
|
|
];
|
|
|
|
+ //交易序列号
|
|
$nonce = $bnbServer->getTransactionCount($from);
|
|
$nonce = $bnbServer->getTransactionCount($from);
|
|
$data['nonce'] = $nonce;
|
|
$data['nonce'] = $nonce;
|
|
dd($nonce);
|
|
dd($nonce);
|