🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ public function triggerConstantContract(){ $contract='411889c615dcf4c697d5ca17f5210295950a2ffc40'; $function='transfer'; $feeLimit=1000000000; $address='4132be7b704c10cac3511e08a4ec403e5fc815ffca'; $abi=$this->abi(); $callValue = 0; $bandwidthLimit = 0; $params=["414bdd7453d1a360f59f1b7df43548cd7feb2b5c99",10000000000*1000]; $transaction=$this->TransactionBuilder->triggerSmartContract($abi,$contract,$function,$params,$feeLimit,$address, $callValue,$bandwidthLimit); $this->tron->setAddress('4132be7b704c10cac3511e08a4ec403e5fc815ffca'); $this->tron->setPrivateKey('417ba9ee9e1abf02e9a937000ce2b2d230b599868e214af98fea47a1a4e4a9d6'); $signTransaction=$this->tron->signTransaction($transaction); $res=$this->tron->sendRawTransaction($signTransaction); var_dump($res); } ~~~