web3p/web3.php

error the method personal_newAccount does not exist/is not available

XiaomiYe opened this issue · 1 comments

    $web3 = new Web3(new HttpProvider(new HttpRequestManager('https://chain.xxxxx.io', 3))); 
    
    $eth = $web3->eth;
    
    $personal = $web3->personal;
    
    $personal->newAccount('123456', function ($err, $account) use (&$newAccount) {
    	if ($err !== null) {
    	    echo 'Error: ' . $err->getMessage();
    		return;
    	}
    	$newAccount = $account;
    	
    	echo 'New account: ' . $account . PHP_EOL;
    });

result
error the method personal_newAccount does not exist/is not available,why?

Facing same issue