createAddress(secretSpendKey, publicSpendKey, success, error) {
    return this._sendXHR(
      rpc.createAddress(
        this.id,
        this.rpcPassword,
        {
          ...(secretSpendKey && { secretSpendKey }),
          ...(publicSpendKey && { publicSpendKey })

        }
      ),
      success,
      error
    )
  }
/**
   * Creates an additional address in the wallet
   * @param {string} [secretSpendKey] - Private spend key. If specified, walletd creates a spend address.
   * @param {string} [publicSpendKey] - Public spend key. If specified, walletd creates a view address.
  * Note: If secretSpendKey or publicSpendKey parameters are specified, walletd creates a spend address with a generated spend key.
  * Note: Both parameters (secretSpendKey, viewSpendKey) cannot be present in a single request.
  */
Creates an additional address in the wallet
@param {string} [secretSpendKey] - Private spend key. If specified, walletd creates a spend address.
@param {string} [publicSpendKey] - Public spend key. If specified, walletd creates a view address.
Note: If secretSpendKey or publicSpendKey parameters are specified, walletd creates a spend address with a generated spend key.
Note: Both parameters (secretSpendKey, viewSpendKey) cannot be present in a single request.
Creates an additional address in the wallet @param { string } [ secretSpendKey ] - Private spend key . If specified walletd creates a spend address . @param { string } [ publicSpendKey ] - Public spend key . If specified walletd creates a view address . Note : If secretSpendKey or publicSpendKey parameters are specified walletd creates a spend address with a generated spend key . Note : Both parameters ( secretSpendKey viewSpendKey ) cannot be present in a single request .
createAddress(secretSpendKey, publicSpendKey, success, error) {
    return this._sendXHR(
      rpc.createAddress(
        this.id,
        this.rpcPassword,
        {
          ...(secretSpendKey && { secretSpendKey }),
          ...(publicSpendKey && { publicSpendKey })
        }
      ),
      success,
      error
    )
  }
createAddress ( secretSpendKey , publicSpendKey , success , error ) { return this . _sendXHR ( rpc . createAddress ( this . id , this . rpcPassword , { ... ( secretSpendKey && { secretSpendKey } ) , ... ( publicSpendKey && { publicSpendKey } ) } ) , success , error ) }
Creates an additional address in the wallet
 @param {string} [secretSpendKey] - Private spend key.
Creates an additional address in the wallet @param { string } [ secretSpendKey ] - Private spend key .