UNPKG

viem

Version:

TypeScript Interface for Ethereum

13 lines 397 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAutomine = getAutomine; async function getAutomine(client) { if (client.mode === 'ganache') return await client.request({ method: 'eth_mining', }); return await client.request({ method: `${client.mode}_getAutomine`, }); } //# sourceMappingURL=getAutomine.js.map