github.com/amazechain/amc@v0.1.3/docs/jsonrpc/web3.md (about)

     1  # `web3` Namespace
     2  
     3  The `web3` API provides utility functions for the web3 client.
     4  
     5  ## `web3_clientVersion`
     6  
     7  Get the web3 client version.
     8  
     9  
    10  | Client | Method invocation                  |
    11  |--------|------------------------------------|
    12  | RPC    | `{"method": "web3_clientVersion"}` |
    13  
    14  ### Example
    15  
    16  ```js
    17  // > {"jsonrpc":"2.0","id":1,"method":"web3_clientVersion","params":[]}
    18  {"jsonrpc":"2.0","id":1,"result":"amc/v0.1.0/x86_64-unknown-linux-gnu"}
    19  ```
    20  
    21  ## `web3_sha3`
    22  
    23  Get the Keccak-256 hash of the given data.
    24  
    25  | Client | Method invocation                            |
    26  |--------|----------------------------------------------|
    27  | RPC    | `{"method": "web3_sha3", "params": [bytes]}` |
    28  
    29  ### Example
    30  
    31  ```js
    32  // > {"jsonrpc":"2.0","id":1,"method":"web3_sha3","params":["rust is awesome"]}
    33  {"jsonrpc":"2.0","id":1,"result":"0xe421b3428564a5c509ac118bad93a3b84485ec3f927e214b0c4c23076d4bc4e0"}
    34  ```