| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Wasm.Api.GRPC
Synopsis
- newtype GrpcObject grpcClient = GrpcObject grpcClient
- newGrpcConnectionImpl :: (String -> IO grpcClient) -> String -> IO (GrpcObject grpcClient)
- getEraImpl :: (grpcClient -> IO Int) -> GrpcObject grpcClient -> IO Int
- getProtocolParamsImpl :: (grpcClient -> IO ProtocolParamsJSON) -> GrpcObject grpcClient -> IO ProtocolParamsJSON
- getAllUtxosImpl :: (grpcClient -> IO utxos) -> GrpcObject grpcClient -> IO utxos
- getUtxosForAddressImpl :: (grpcClient -> String -> IO utxos) -> GrpcObject grpcClient -> String -> IO utxos
- submitTxImpl :: (grpcClient -> String -> IO (Either String String)) -> GrpcObject grpcClient -> String -> IO String
Documentation
newtype GrpcObject grpcClient Source #
Internal data for the GrpcConnection virtual object. Currently, it is just a wrapper around the grpcClient, which is some object that allows us to interact with the Cardano Node via gRPC or GRPC-web.
Constructors
| GrpcObject grpcClient |
newGrpcConnectionImpl :: (String -> IO grpcClient) -> String -> IO (GrpcObject grpcClient) Source #
Create a new unsigned transaction object for making a Conway era transaction.
getEraImpl :: (grpcClient -> IO Int) -> GrpcObject grpcClient -> IO Int Source #
Get the era from the Cardano Node using gRPC or GRPC-web.
getProtocolParamsImpl :: (grpcClient -> IO ProtocolParamsJSON) -> GrpcObject grpcClient -> IO ProtocolParamsJSON Source #
Get the protocol parameters from the Cardano Node using gRPC or GRPC-web.
getAllUtxosImpl :: (grpcClient -> IO utxos) -> GrpcObject grpcClient -> IO utxos Source #
Get all UTXOs from the node using a gRPC or GRPC-web client.
getUtxosForAddressImpl :: (grpcClient -> String -> IO utxos) -> GrpcObject grpcClient -> String -> IO utxos Source #
Get UTXOs for a given address using a gRPC or GRPC-web client.