@hackage utxorpc0.0.19.2
Generated code for a gRPC interface for UTxO Blockchains
Categories
License
Apache-2.0
Maintainer
TxPipe <registrant@txpipe.io> Dominic Mayhew <dominic.j.mayhew@gmail.com>
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
Installation
Dependencies (4)
- base >=4.7 && <5
- proto-lens >=0.7.1 && <0.8
- proto-lens-protobuf-types >=0.7.2 && <0.8
- proto-lens-runtime >=0.7.0.6 Show all…
Dependents (2)
@hackage/utxorpc-server, @hackage/utxorpc-client
UTxO RPC
This package is generated by proto-lens-protoc from the u5c specification and contains Data.ProtoLens.Message.Message instances useful for serde. It is designed to be used with the client or server SDK. Build a message with the lens library by importing the relevant utxorpc modules and calling Data.ProtoLens.Message.defMessage:
import Control.Lens.Operators ((&), (.~))
import Data.ProtoLens.Message (Message (defMessage))
import qualified Data.Text.Encoding as T
import Proto.Utxorpc.V1.Sync.Sync (FetchBlockRequest)
import Proto.Utxorpc.V1.Sync.Sync_Fields (hash, index)
fetchBlockRequest :: FetchBlockRequest
fetchBlockRequest =
defMessage
& ref .~
[ defMessage
& index .~ 116541970
& hash .~ T.encodeUtf8 "9d5abce5b1a7d94b141a597fd621a1ff9dcd46579ff1939664364311cd1be338"
]
The easieset way to send requests or run a service is through the SDKs: utxorpc-client and utxorpc-server.
Generating this package from the spec
Please see the u5c project README for information on how this package was generated. To generate this code yourself, please see proto-lens.
NOTE: proto-lens-protobuf-types version >= 0.7.2 is required to build this package, as it includes support of the FieldMask well-known type.
Maintainers
See the UTxO spec repo README.
[!NOTE]
proto-lens-protobuf-typesversion >= 0.7.2 is required to build this package as it contains support for theFieldMaskwell-known type.