public function createAddress(string $secretSpendKey = null, string $publicSpendKey = null):JsonResponse
    {
        $params = [];

        if (!is_null($secretSpendKey)) $params['secretSpendKey'] = $secretSpendKey;
        if (!is_null($publicSpendKey)) $params['publicSpendKey'] = $publicSpendKey;

        return $this->rpcPost('createAddress', $params);
    }
public function createAddress(string $secretSpendKey = null, string $publicSpendKey = null):JsonResponse
    {
        $params = [];

        if (!is_null($secretSpendKey)) $params['secretSpendKey'] = $secretSpendKey;
        if (!is_null($publicSpendKey)) $params['publicSpendKey'] = $publicSpendKey;

        return $this->rpcPost('createAddress', $params);
    }
public function createAddress ( string $ secretSpendKey = null , string $ publicSpendKey = null ) : JsonResponse { $ params = [ ] ; if ( ! is_null ( $ secretSpendKey ) ) $ params [ 'secretSpendKey' ] = $ secretSpendKey ; if ( ! is_null ( $ publicSpendKey ) ) $ params [ 'publicSpendKey' ] = $ publicSpendKey ; return $ this -> rpcPost ( 'createAddress' , $ params ) ; }
Creates an additional address in your wallet.

@param string|null $secretSpendKey Private spend key. If secretSpendKey was specified,
RPC Wallet creates spend address. Optional.
@param string|null $publicSpendKey Public spend key. If publicSpendKey was specified,
RPC Wallet creates view address. Optional.
@return JsonResponse
Creates an additional address in your wallet .