cardano-wasm:cardano-wasi-lib
Safe HaskellNone
LanguageHaskell2010

Cardano.Wasm.Api.GRPC

Synopsis

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.

submitTxImpl :: (grpcClient -> String -> IO (Either String String)) -> GrpcObject grpcClient -> String -> IO String Source #

Submit a transaction to the Cardano Node using gRPC or GRPC-web.