UNPKG

429 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = encodeObject;
7
8// Copyright 2017-2018 @polkadot/api-provider authors & contributors
9// This software may be modified and distributed under the terms
10// of the ISC license. See the LICENSE file for details.
11function encodeObject(self, method, params) {
12 return {
13 id: ++self.id,
14 jsonrpc: '2.0',
15 method,
16 params
17 };
18}
\No newline at end of file