Skip to content

Better developer experience with cardano/leger-api packages #70

@v0d1ch

Description

@v0d1ch

Currently there are no functions to map from blockfrost to cardano/ledger-api types (or I didn't find them). In my specific use-case I needed to query blockfrost for ProtocolParams and then use the cardano-api to construct the transaction. Problem is there is no way to map from blockfrost ProtocolParams to cardano-api ProtocolParameters (Or ledger PParams) so I need to do the mapping myself.

It would be very convenient to provide a way to easily use cardano or the ledger-api packages with blockfrost types. I am aware that it is inconvenient to track the downstream changes and make this conversion always possible but at the same time it provides much better developer experience. As a workaround I think it would be enough to make sure the ToJSON instance for a blockfrost type can be decoded to some cardano/ledger api type but not sure if this is less hassle.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions