{"_id":"@alayanetwork/ganache-core","_rev":"1-d302b41765099090a84f3d74d0948a1a","name":"@alayanetwork/ganache-core","dist-tags":{"latest":"0.13.2"},"versions":{"0.13.2":{"name":"@alayanetwork/ganache-core","version":"0.13.2","main":"./index.js","types":"./typings/index.d.ts","engines":{"node":">=8.9.0"},"directories":{"lib":"./lib"},"scripts":{"_mocha":"mocha --check-leaks --recursive --globals _scratch --opts ./test/.mocharc","nyc_mocha":"nyc npm run _mocha","_lint":"eslint --ignore-path .gitignore .","build":"webpack-cli --config ./webpack/node/core.webpack.config.js","build-web":"webpack-cli --config ./webpack/web-experimental/core.webpack.config.js","format":"prettier --write \"{lib,perf,test}/**/*.js\" && eslint --fix --ignore-path .gitignore .","prepublishOnly":"npm run test && npm run build && npm run test-build && cp npm-shrinkwrap.json npm-shrinkwrap.json.bak && rm -rf node_modules/@alayanetwork/web3-providers-ws/node_modules/websocket/.git && npm prune --only=prod","postpublish":"rm npm-shrinkwrap.json && mv npm-shrinkwrap.json.bak npm-shrinkwrap.json && npm ci","test":"npm run _lint && npm run nyc_mocha","test-build":"cross-env TEST_BUILD=node npm run _mocha","test-web-experimental":"cross-env TEST_BUILD=web-experimental npm run _mocha","coverage":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"@alayanetwork/web3-provider-engine":"14.2.1","abstract-leveldown":"3.0.0","async":"2.6.2","bip39":"2.5.0","cachedown":"1.0.0","clone":"2.1.2","debug":"3.2.6","encoding-down":"5.0.4","eth-sig-util":"2.3.0","ethereumjs-abi":"0.6.7","ethereumjs-account":"3.0.0","ethereumjs-block":"2.2.0","ethereumjs-tx":"1.3.7","ethereumjs-util":"6.1.0","ethereumjs-vm":"3.0.0","heap":"0.2.6","level-sublevel":"6.6.4","levelup":"3.1.1","lodash":"^4.17.19","merkle-patricia-tree":"2.3.2","seedrandom":"3.0.1","source-map-support":"0.5.12","tmp":"0.1.0","websocket":"^1.0.31","ethereumjs-wallet":"0.6.3","@alayanetwork/web3":"0.13.2"},"devDependencies":{"@alayanetwork/web3":"0.13.2","@types/web3":"^1.0.19","assert-match":"^1.1.1","browserfs":"1.4.3","coveralls":"^3.0.4","cross-env":"5.2.0","eslint":"5.7.0","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.14.0","eslint-plugin-node":"7.0.1","eslint-plugin-promise":"4.2.1","eslint-plugin-standard":"4.0.0","ethereumjs-wallet":"0.6.3","ethers":"4.0.26","husky":"^1.1.3","js-scrypt":"0.2.0","lint-staged":"^8.0.4","memdown":"^1.3.1","mocha":"^8.0.1","mocha-lcov-reporter":"^1.3.0","number-to-bn":"1.7.0","nyc":"^14.1.1","pify":"4.0.0","portfinder":"^1.0.18","prettier":"^1.18.2","request":"^2.88.0","semver":"5.6.0","solc":"^0.6.11","temp":"0.8.3","terser-webpack-plugin":"^3.0.6","webpack":"^4.43.0","webpack-bundle-size-analyzer":"2.7.0","webpack-cli":"^3.3.12"},"optionalDependencies":{"ethereumjs-wallet":"0.6.3","@alayanetwork/web3":"0.13.2"},"repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache-core.git"},"license":"MIT","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier --write","eslint --fix --ignore-path .gitignore","git add"]},"eslintConfig":{"root":true,"env":{"node":true,"es6":true},"parserOptions":{"ecmaVersion":8,"sourceType":"module","ecmaFeatures":{"impliedStrict":true}},"extends":"standard","rules":{"brace-style":["error","1tbs",{"allowSingleLine":false}],"curly":["error","all"],"max-len":["error",140,{"ignoreRegExpLiterals":true}],"quotes":["error","double"],"semi":["error","always"],"space-before-function-paren":["error","never"],"wrap-iife":["error","outside"]}},"prettier":{"printWidth":120,"arrowParens":"always"},"gitHead":"9b5a54b8e47a8ef1a94e7f102520cb45f22c617f","description":"[![npm Version](https://img.shields.io/npm/v/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![npm Downloads](https://img.shields.io/npm/dm/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![Build Status](https://travis-ci.o","bugs":{"url":"https://github.com/trufflesuite/ganache-core/issues"},"homepage":"https://github.com/trufflesuite/ganache-core#readme","_id":"@alayanetwork/ganache-core@0.13.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-j3d+nooyPEUQBi71LcaDX5D0sKLEjSXZUFRBzLajmfe3Zrz49Phrs38Gwf0Zhz2E4xRTf0qn4tMhxnIAktK47A==","shasum":"ba3ca91e64a14607806c0d66d838da485748326d","tarball":"https://registry.npmjs.org/@alayanetwork/ganache-core/-/ganache-core-0.13.2.tgz","fileCount":47,"unpackedSize":647592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjpUeCRA9TVsSAnZWagAA6aQP/2VXh23lvgJKngNFRBnx\nwjr2Rzae2nbgeJl6MRt//Zo5lh/Xq9SbsoC4nOm40Xs1XndLVb4LQ0UDoVJu\n25U8+0SkCPwH/B8tndre36qB75vgS14wd1FSrEKX2PDpc4szpEy31uwW41hY\npPAvssv5h/1IzCeI6rH1pukinWRKo3SR0XCtWVryus3RV3ChPXlk6/aaPJPq\ngqJAGHxjXlR6c1YiNM5Q2q0jThszw49Qen4LYnNXQSqbWgLdeCAQb7J/8XTN\nfpWHOOTwPu/KgLZIJFo45RyMzus3rqDVZD/VZurRS6nYZotC8NxQnsC6vRKm\n4CgA52lKhgshzpAyNH7HRlxr+icWTEfVtC299mOlh7T5BRSrYPinfREk8kOD\ntlGQl6+9mVegwHmlPtOZIaF2XMJTmdyQM35gx9OR5YwYp1ZAcfwaV07ohRAD\nT2HEO5/6dED4wb46ONGUOoDVBWbyOYokMfQXftCoBsQLJEh1uHnxLnqcD5QE\nZkwNeYlYAsgK7068wLTHHHa1Lrk+Nas5S2S0Z3O2fJgc/mNzTdLzkDXbx0v1\nN6CjMlK7DtZP0kOMllTwfdbhAqX+Kw13O2eNXnoR9lMD8IXVkYnKRKd6I5Nr\nXaL5N3MU1CWhZFSvSoSQMugw//GRvBSJ6L5OyITLUylve8EG7ZUwMFFyr+qM\nH8ss\r\n=dR6w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2N8bGS+Zi1ItfSAHl+r5xyX+wj5jnPcyZbx8Fc4EQXgIhAP0kUl5KvS9d2JMb0pfUglkuMewDnrr/UfY7o5kk2qGH"}]},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ganache-core_0.13.2_1603179805552_0.21722561988350675"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-20T07:43:25.505Z","0.13.2":"2020-10-20T07:43:25.700Z","modified":"2022-04-04T12:33:58.241Z"},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"description":"[![npm Version](https://img.shields.io/npm/v/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![npm Downloads](https://img.shields.io/npm/dm/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![Build Status](https://travis-ci.o","homepage":"https://github.com/trufflesuite/ganache-core#readme","repository":{"type":"git","url":"git+https://github.com/trufflesuite/ganache-core.git"},"bugs":{"url":"https://github.com/trufflesuite/ganache-core/issues"},"license":"MIT","readme":"[![npm Version](https://img.shields.io/npm/v/ganache-core.svg)](https://www.npmjs.com/package/ganache-core)\n[![npm Downloads](https://img.shields.io/npm/dm/ganache-core.svg)](https://www.npmjs.com/package/ganache-core)\n[![Build Status](https://travis-ci.org/trufflesuite/ganache-core.svg?branch=master)](https://travis-ci.org/trufflesuite/ganache-core)\n[![Coverage Status](https://coveralls.io/repos/github/trufflesuite/ganache-core/badge.svg?branch=develop)](https://coveralls.io/github/trufflesuite/ganache-core?branch=develop)\n# Ganache Core\n\nThis is the core code that powers the Ganache application and the Ganache command line tool.\n\n[Usage](#usage) | [Options](#options) | [Implemented Methods](#implemented-methods) | [Custom Methods](#custom-methods) | [Unsupported Methods](#unsupported-methods) | [Testing](#testing)\n\n## Installation\n\n`ganache-core` is written in JavaScript and distributed as a Node.js package via `npm`. Make sure you have Node.js (>= v8.9.0) installed, and your environment is capable of installing and compiling `npm` modules.\n\n**macOS** Make sure you have the XCode Command Line Tools installed. These are needed in general to be able to compile most C based languages on your machine, as well as many npm modules.\n\n**Windows** See our [Windows install instructions](https://github.com/trufflesuite/ganache-cli/wiki/Installing-ganache-cli-on-Windows).\n\n**Ubuntu/Linux** Follow the basic instructions for installing [Node.js](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) and make sure that you have `npm` installed, as well as the `build-essential` `apt` package (it supplies `make` which you will need to compile most things). Use the official Node.js packages, *do not use the package supplied by your distribution.*\n\nUsing npm:\n\n```Bash\nnpm install ganache-core\n```\n\nor, if you are using [Yarn](https://yarnpkg.com/):\n\n```Bash\nyarn add ganache-core\n```\n\n\n## Usage\n\nAs a [Web3](https://github.com/ethereum/web3.js/) provider:\n\n```javascript\nconst ganache = require(\"ganache-core\");\nconst web3 = new Web3(ganache.provider());\n```\nIf web3 is already initialized:\n```javascript\nconst ganache = require(\"ganache-core\");\nweb3.setProvider(ganache.provider());\n```\nNOTE: depending on your web3 version, you may need to set a number of confirmation blocks\n```javascript\nconst web3 = new Web3(provider, null, { transactionConfirmationBlocks: 1 });\n```\n\nAs an [ethers.js](https://github.com/ethers-io/ethers.js/) provider:\n\n```javascript\nconst ganache = require(\"ganache-core\");\nconst provider = new ethers.providers.Web3Provider(ganache.provider());\n```\n\nAs a general HTTP and WebSocket server:\n\n```javascript\nconst ganache = require(\"ganache-core\");\nconst server = ganache.server();\nconst provider = server.provider;\nserver.listen(port, function(err, blockchain) { ... });\n```\n\n## Options\n\nBoth `.provider()` and `.server()` take a single object which allows you to specify behavior of the Ganache instance. This parameter is optional. Available options are:\n\n* `\"accounts\"`: `Array` of `Object`'s. Each object should have a `balance` key with a hexadecimal value. The key `secretKey` can also be specified, which represents the account's private key. If no `secretKey`, the address is auto-generated with the given balance. If specified, the key is used to determine the account's address.\n* `\"debug\"`: `boolean` - Output VM opcodes for debugging\n* `\"blockTime\"`: `number` - Specify blockTime in seconds for automatic mining. If you don't specify this flag, ganache will instantly mine a new block for every transaction. Using the `blockTime` option is discouraged unless you have tests which require a specific mining interval.\n* `\"logger\"`: `Object` - Object, like `console`, that implements a `log()` function.\n* `\"mnemonic\"`: Use a specific HD wallet mnemonic to generate initial addresses.\n* `\"port\"`: `number` Port number to listen on when running as a server.\n* `\"seed\"`: Use arbitrary data to generate the HD wallet mnemonic to be used.\n* `\"default_balance_ether\"`: `number` - The default account balance, specified in ether.\n* `\"total_accounts\"`: `number` - Number of accounts to generate at startup.\n* `\"fork\"`: `string` or `object` - Fork from another currently running Ethereum client at a given block.  When a `string`, input should be the HTTP location and port of the other client, e.g. `http://localhost:8545`. You can optionally specify the block to fork from using an `@` sign: `http://localhost:8545@1599200`. Can also be a `Web3 Provider` object, optionally used in conjunction with the `fork_block_number` option below.\n* `\"fork_block_number\"`: `string` or `number` - Block number the provider should fork from, when the `fork` option is specified. If the `fork` option is specified as a string including the `@` sign and a block number, the block number in the `fork` parameter takes precedence.\n* `\"network_id\"`: Specify the network id ganache-core will use to identify itself (defaults to the current time or the network id of the forked blockchain if configured)\n* `\"time\"`: `Date` - Date that the first block should start. Use this feature, along with the `evm_increaseTime` method to test time-dependent code.\n* `\"locked\"`: `boolean` - whether or not accounts are locked by default.\n* `\"unlocked_accounts\"`: `Array` - array of addresses or address indexes specifying which accounts should be unlocked.\n* `\"db_path\"`: `String` - Specify a path to a directory to save the chain database. If a database already exists, `ganache-core` will initialize that chain instead of creating a new one.\n* `\"db\"`: `Object` - Specify an alternative database instance, for instance [MemDOWN](https://github.com/level/memdown).\n* `\"ws\"`: `boolean` Enable a websocket server. This is `true` by default.\n* `\"account_keys_path\"`: `String` - Specifies a file to save accounts and private keys to, for testing.\n* `\"vmErrorsOnRPCResponse\"`: `boolean` - Whether or not to transmit transaction failures as RPC errors. Set to `false` for error reporting behaviour which is compatible with other clients such as geth and Parity. This is `true` by default to replicate the error reporting behavior of previous versions of ganache.\n* `\"hdPath\"`: The hierarchical deterministic path to use when generating accounts. Default: \"m/44'/60'/0'/0/\"\n* `\"hardfork\"`: `String` Allows to specify which hardfork should be used. Supported hardforks are `byzantium`, `constantinople`, and `petersburg` (default).\n* `\"allowUnlimitedContractSize\"`: `boolean` - Allows unlimited contract sizes while debugging (NOTE: this setting is often used in conjuction with an increased `gasLimit`). By setting this to `true`, the check within the EVM for contract size limit of 24KB (see [EIP-170](https://git.io/vxZkK)) is bypassed. Setting this to `true` **will** cause `ganache-core` to behave differently than production environments. (default: `false`; **ONLY** set to `true` during debugging).\n* `\"gasPrice\"`: `String::hex` Sets the default gas price for transactions if not otherwise specified. Must be specified as a `hex` encoded string in `wei`. Defaults to `\"0x77359400\"` (2 `gwei`).\n* `\"gasLimit\"`: `String::hex` Sets the block gas limit. Must be specified as a `hex` string. Defaults to `\"0x6691b7\"`.\n* `\"keepAliveTimeout\"`:  `number` If using `.server()` - Sets the HTTP server's `keepAliveTimeout` in milliseconds. See the [NodeJS HTTP docs](https://nodejs.org/api/http.html#http_server_keepalivetimeout) for details. `5000` by default.\n\n## Implemented Methods\n\nThe RPC methods currently implemented are:\n\n* [platon_accounts](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_accounts)\n* [platon_blockNumber](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_blockNumber)\n* [platon_call](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_call)\n* `platon_chainId`\n* [platon_coinbase](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_coinbase)\n* [platon_estimateGas](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_estimateGas)\n* [platon_gasPrice](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_gasPrice)\n* [platon_getBalance](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getBalance)\n* [platon_getBlockByNumber](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getBlockByNumber)\n* [platon_getBlockByHash](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getBlockByHash)\n* [platon_getBlockTransactionCountByHash](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getBlockTransactionCountByHash)\n* [platon_getBlockTransactionCountByNumber](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getBlockTransactionCountByNumber)\n* [platon_getCode](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getCode)\n* [platon_getCompilers](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getCompilers)\n* [platon_getFilterChanges](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getFilterChanges)\n* [platon_getFilterLogs](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getFilterLogs)\n* [platon_getLogs](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getLogs)\n* [platon_getStorageAt](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getStorageAt)\n* [platon_getTransactionByHash](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getTransactionByHash)\n* [platon_getTransactionByBlockHashAndIndex](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getTransactionByBlockHashAndIndex)\n* [platon_getTransactionByBlockNumberAndIndex](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getTransactionByBlockNumberAndIndex)\n* [platon_getTransactionCount](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getTransactionCount)\n* [platon_getTransactionReceipt](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_getTransactionReceipt)\n* [platon_hashrate](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_hashrate)\n* [platon_mining](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_mining)\n* [platon_newBlockFilter](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_newBlockFilter)\n* [platon_newFilter](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_newFilter)\n* [platon_protocolVersion](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_protocolVersion)\n* [platon_sendTransaction](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_sendTransaction)\n* [platon_sendRawTransaction](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_sendRawTransaction)\n* [platon_sign](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_sign)\n* `platon_signTypedData`\n* [platon_subscribe](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_subscribe)\n* [platon_unsubscribe](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_unsubscribe)\n* [shh_version](https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_version)\n* [net_version](https://github.com/ethereum/wiki/wiki/JSON-RPC#net_version)\n* [net_peerCount](https://github.com/ethereum/wiki/wiki/JSON-RPC#net_peerCount)\n* [net_listening](https://github.com/ethereum/wiki/wiki/JSON-RPC#net_listening)\n* [platon_uninstallFilter](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_uninstallFilter)\n* [platon_syncing](https://github.com/ethereum/wiki/wiki/JSON-RPC#platon_syncing)\n* [web3_clientVersion](https://github.com/ethereum/wiki/wiki/JSON-RPC#web3_clientVersion)\n* [web3_sha3](https://github.com/ethereum/wiki/wiki/JSON-RPC#web3_sha3)\n* `bzz_hive`\n* `bzz_info`\n\n#### Management API Methods\n\n* [debug_traceTransaction](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#debug_tracetransaction)\n* [miner_start](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_start)\n* [miner_stop](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner_stop)\n* [personal_sendTransaction](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sendTransaction)\n* [personal_unlockAccount](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_unlockAccount)\n* [personal_importRawKey](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_importRawKey)\n* [personal_newAccount](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_newAccount)\n* [personal_lockAccount](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_lockAccount)\n* [personal_listAccounts](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_listaccounts)\n\n## Custom Methods\n\nSpecial non-standard methods that aren’t included within the original RPC specification:\n* `evm_snapshot` : Snapshot the state of the blockchain at the current block. Takes no parameters. Returns the integer id of the snapshot created. A snapshot can only be used once. After a successful `evm_revert`, the same snapshot id cannot be used again. Consider creating a new snapshot after each `evm_revert` *if you need to revert to the same point multiple times*.\n  ```bash\n  curl -H \"Content-Type: application/json\" -X POST --data \\\n          '{\"id\":1337,\"jsonrpc\":\"2.0\",\"method\":\"evm_snapshot\",\"params\":[]}' \\\n          http://localhost:8545\n  ```\n  ```json\n  { \"id\": 1337, \"jsonrpc\": \"2.0\", \"result\": \"0x1\" }\n  ```\n* `evm_revert` : Revert the state of the blockchain to a previous snapshot. Takes a single parameter, which is the snapshot id to revert to. This deletes the given snapshot, as well as any snapshots taken after (Ex: reverting to id `0x1` will delete snapshots with ids `0x1`, `0x2`, `etc`...  If no snapshot id is passed it will revert to the latest snapshot. Returns `true`.\n  ```bash\n  # Ex: ID \"1\" (hex encoded string)\n  curl -H \"Content-Type: application/json\" -X POST --data \\\n          '{\"id\":1337,\"jsonrpc\":\"2.0\",\"method\":\"evm_revert\",\"params\":[\"0x1\"]}' \\\n          http://localhost:8545\n  ```\n  ```json\n  { \"id\": 1337, \"jsonrpc\": \"2.0\", \"result\": true }\n  ```\n* `evm_increaseTime` : Jump forward in time. Takes one parameter, which is the amount of time to increase in seconds. Returns the total time adjustment, in seconds.\n  ```bash\n  # Ex: 1 minute (number)\n  curl -H \"Content-Type: application/json\" -X POST --data \\\n          '{\"id\":1337,\"jsonrpc\":\"2.0\",\"method\":\"evm_increaseTime\",\"params\":[60]}' \\\n          http://localhost:8545\n  ```\n  ```json\n  { \"id\": 1337, \"jsonrpc\": \"2.0\", \"result\": \"060\" }\n  ```\n* `evm_mine` : Force a block to be mined. Takes one optional parameter, which is the timestamp a block should setup as the mining time. Mines a block independent of whether or not mining is started or stopped.\n  ```bash\n  # Ex: new Date(\"2009-01-03T18:15:05+00:00\").getTime()\n  curl -H \"Content-Type: application/json\" -X POST --data \\\n          '{\"id\":1337,\"jsonrpc\":\"2.0\",\"method\":\"evm_mine\",\"params\":[1231006505000]}' \\\n          http://localhost:8545\n  ```\n\n  ```json\n  { \"id\": 1337, \"jsonrpc\": \"2.0\", \"result\": \"0x0\" }\n  ```\n\n## Unsupported Methods\n\n* `platon_compileSolidity`: If you'd like Solidity compilation in Javascript, please see the [solc-js project](https://github.com/ethereum/solc-js).\n\n\n## Testing\n\nRun tests via:\n\n```\n$ npm test\n```\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n","readmeFilename":"README.md"}