Skip to content

Commit

Permalink
api: add getAddressInfoExtended for /addresses/:address/extended endp…
Browse files Browse the repository at this point in the history
…oint
  • Loading branch information
sorki committed Dec 18, 2023
1 parent 1233e39 commit 4c5a26c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions blockfrost-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Allow servant `0.20` [#41](https://github.com/blockfrost/blockfrost-haskell/pull/41)
* Additions [#43](https://github.com/blockfrost/blockfrost-haskell/pull/43)
* `getAccountAssociatedAddressesTotal` for `/accounts/:stake_address/addresses/total`
* `getAddressInfoExtended` for `/addresses/:address/extended`
* `listPoolsExtended` for `/pools/extended`
* `/utils` API
* `deriveShelleyAddress` for `/utils/addresses/xpub/:xpub/:role/:index`
Expand Down
1 change: 1 addition & 0 deletions blockfrost-client/src/Blockfrost/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module Blockfrost.Client
, getAccountAssociatedAssets'
-- Cardano - Addresses
, getAddressInfo
, getAddressInfoExtended
, getAddressDetails
, getAddressUtxos
, getAddressUtxos'
Expand Down
8 changes: 8 additions & 0 deletions blockfrost-client/src/Blockfrost/Client/Cardano/Addresses.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module Blockfrost.Client.Cardano.Addresses
( getAddressInfo
, getAddressInfoExtended
, getAddressDetails
, getAddressUtxos
, getAddressUtxos'
Expand All @@ -25,6 +26,13 @@ getAddressInfo_ = _addressInfo . addressesClient
getAddressInfo :: MonadBlockfrost m => Address -> m AddressInfo
getAddressInfo a = go (`getAddressInfo_` a)

getAddressInfoExtended_ :: MonadBlockfrost m => Project -> Address -> m AddressInfoExtended
getAddressInfoExtended_ = _addressInfoExtended . addressesClient

-- | Obtain extended information about a specific address.
getAddressInfoExtended :: MonadBlockfrost m => Address -> m AddressInfoExtended
getAddressInfoExtended a = go (`getAddressInfoExtended_` a)

getAddressDetails_ :: MonadBlockfrost m => Project -> Address -> m AddressDetails
getAddressDetails_ = _addressDetails . addressesClient

Expand Down

0 comments on commit 4c5a26c

Please sign in to comment.