public function generateAccount()
    {
        $params = [];
        $apiUrl = $this->getPath('generate', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createAccountModel($object); //XXX brr => error/content validation first
    }
public function generateAccount()
    {
        $params = [];
        $apiUrl = $this->getPath('generate', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createAccountModel($object); //XXX brr => error/content validation first
    }
public function generateAccount ( ) { $ params = [ ] ; $ apiUrl = $ this -> getPath ( 'generate' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createAccountModel ( $ object ) ; //XXX brr => error/content validation first }
Let NIS generate an account KeyPair.

WARNING: This method can only be used on a locally running
NIS. It is preferred to use the \NEM\Core\KeyPair
class to create accounts on your machine rather than
let NIS create an account for you.

@internal This method only works with a locally running NIS.
@return  object      Object with keys `address`, `publicKey` and `privateKey`.
Let NIS generate an account KeyPair .