Addition of functinality for manipulating Unified Addresses and Viewing Keys #1
1 changed files with 17 additions and 8 deletions
|
@ -48,9 +48,18 @@ instance FromJSON RawTxResponse where
|
||||||
parseJSON =
|
parseJSON =
|
||||||
withObject "RawTxResponse" $ \obj -> do
|
withObject "RawTxResponse" $ \obj -> do
|
||||||
i <- obj .: "txid"
|
i <- obj .: "txid"
|
||||||
o <- obj .: "orchard"
|
o <- obj .:? "orchard"
|
||||||
h <- obj .: "hex"
|
h <- obj .: "hex"
|
||||||
a <- o .: "actions"
|
case o of
|
||||||
|
Nothing ->
|
||||||
|
pure $
|
||||||
|
RawTxResponse
|
||||||
|
i
|
||||||
|
(decodeHexText h)
|
||||||
|
(getShieldedOutputs (decodeHexText h))
|
||||||
|
[]
|
||||||
|
Just o' -> do
|
||||||
|
a <- o' .: "actions"
|
||||||
pure $
|
pure $
|
||||||
RawTxResponse
|
RawTxResponse
|
||||||
i
|
i
|
||||||
|
|
Loading…
Reference in a new issue