UNPKG

581 BJavaScriptView Raw
1"use strict";
2
3var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5Object.defineProperty(exports, "__esModule", {
6 value: true
7});
8exports.default = encodeJson;
9
10var _encodeObject = _interopRequireDefault(require("./encodeObject"));
11
12// Copyright 2017-2018 @polkadot/api-provider authors & contributors
13// This software may be modified and distributed under the terms
14// of the ISC license. See the LICENSE file for details.
15function encodeJson(self, method, params) {
16 return JSON.stringify((0, _encodeObject.default)(self, method, params));
17}
\No newline at end of file