blinklabs-io / tx-submit-api

Cardano Transaction Submit API service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get era from cardano-node

wolf31o2 opened this issue · comments

Get the era from the cardano-node on connect to ensure we're passing the correct one with the transaction.

It looks like we probably need to parse the individual transaction as each era type in succession and return the era/type for the first one that works. This appears to be the method that the upstream cardano-submit-api uses. This will probably result in most transactions being identified as Shelley transactions, which should work fine in general for future eras.