diff --git a/SUPPORTED_APIS.md b/SUPPORTED_APIS.md index 09693583..360e3e8e 100644 --- a/SUPPORTED_APIS.md +++ b/SUPPORTED_APIS.md @@ -75,7 +75,7 @@ The `status` options are: | `ETH` | `eth_unsubscribe` | `NOT IMPLEMENTED` | Cancel a subscription to a particular event | | `EVM` | `evm_addAccount` | `NOT IMPLEMENTED` | Adds any arbitrary account | | [`EVM`](#evm-namespace) | [`evm_increaseTime`](#evm_increasetime) | `SUPPORTED` | Jump forward in time by the given amount of time, in seconds | -| `EVM` | `evm_mine` | `NOT IMPLEMENTED`
[GitHub Issue #67](https://github.com/matter-labs/era-test-node/issues/67) | Force a single block to be mined | +| [`EVM`](#evm-namespace) | [`evm_mine`](#evm_mine) | `SUPPORTED` | Force a single block to be mined | | `EVM` | `evm_removeAccount` | `NOT IMPLEMENTED` | Removes an account | | `EVM` | `evm_revert` | `NOT IMPLEMENTED`
[GitHub Issue #70](https://github.com/matter-labs/era-test-node/issues/70) | Revert the state of the blockchain to a previous snapshot | | `EVM` | `evm_setAccountBalance` | `NOT IMPLEMENTED` | Sets the given account's balance to the specified WEI value | @@ -802,6 +802,26 @@ curl --request POST \ ## `EVM NAMESPACE` +### `evm_mine` + +[source](src/evm.rs) + +Mines an empty block + +#### Status + +`SUPPORTED` + +#### Example + +```bash +curl --request POST \ + --url http://localhost:8011/ \ + --header 'content-type: application/json' \ + --data '{"jsonrpc": "2.0","id": "1","method": "evm_mine","params": [] +}' +``` + ### `evm_increaseTime` [source](src/evm.rs)