UNPKG

@polkadot/api-provider

Version:
18 lines (16 loc) 429 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = encodeObject; // Copyright 2017-2018 @polkadot/api-provider authors & contributors // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. function encodeObject(self, method, params) { return { id: ++self.id, jsonrpc: '2.0', method, params }; }