{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Ethereum.Api.Web3 where
import Data.ByteArray.HexString (HexString)
import Data.Text (Text)
import Network.JsonRpc.TinyClient (JsonRpc (..))
clientVersion :: JsonRpc m => m Text
{-# INLINE clientVersion #-}
clientVersion :: m Text
clientVersion = Text -> m Text
forall (m :: * -> *) a. (JsonRpc m, Remote m a) => Text -> a
remote Text
"web3_clientVersion"
sha3 :: JsonRpc m => HexString -> m HexString
{-# INLINE sha3 #-}
sha3 :: HexString -> m HexString
sha3 = Text -> HexString -> m HexString
forall (m :: * -> *) a. (JsonRpc m, Remote m a) => Text -> a
remote Text
"web3_sha3"