opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
16 lines • 505 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchChain = void 0;
const toHex_js_1 = require("../../utils/encoding/toHex.js");
async function switchChain(client, { id }) {
await client.request({
method: 'wallet_switchEthereumChain',
params: [
{
chainId: (0, toHex_js_1.numberToHex)(id),
},
],
}, { retryCount: 0 });
}
exports.switchChain = switchChain;
//# sourceMappingURL=switchChain.js.map
;