All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Methods for querying governance DReps endpoints -
governance.dreps
,governance.drepsById
,governance.drepsByIdDelegators
,governance.drepsByIdMetadata
,governance.drepsByIdUpdates
,governance.drepsByIdVotes
- Methods for querying governance proposals endpoints -
governance.proposals
,governance.proposal
,governance.proposalMetadata
,governance.proposalParameters
,governance.proposalVotes
,governance.proposalWithdrawals
- Use IPFS types from
@blockfrost/openapi
package
- added the
gotOptions
property to theBlockFrostAPI
class. This property can be passed during the initialization of theBlockFrostAPI
object. For more details, refer to the Got Options documentation. txsRequiredSigners
for retrieving required signers (extra transaction witnesses)networkEras
method for querying blockchain erastxsCbor
for retrieving transaction CBOR
- Updated Blockfrost OpenAPI to 0.1.67
- Cardano SanchoNet support
- Updated Blockfrost OpenAPI to 0.1.60
- Deps bump
verifyWebhookSignature
now returns strongly typed webhook event. Additionally,webhookPayload
parameter now accepts both string and object types, eliminating the need to manually convert the payload to a string.- removed unnecessary promise wrap from most methods
- enabled retry logic for requests failing on
EPROTO
error and520
status code
- drop Node.js 14 support from build and readme
- bump
@emurgo/cardano-serialization-lib-nodejs
and dev deps - bump
@blockfrost/openapi
dep
- remove
testnet
as possible network value - memory leak in
deriveAddress
utilsTxsEvaluate
,utilsTxsEvaluateUtxos
methods
- TSDoc docs for every method
utilsTxsEvaluate
method for/utils/txs/evaluate
Blockfrost endpointutilsTxsEvaluateUtxos
method for/utils/txs/evaluate/utxos
Blockfrost endpointmempoolByAddress
,mempoolByAddressAll
methods for filtering Blockfrost Mempool by an address
- bump
@blockfrost/openapi
to0.1.57
- unused dependency
- epochsLatestParameters method
- tests + mocks
- updated deps
BlockfrostServerError
now includesbody
property in cases where the error was not formatted by Blockfrost Backend (eg. various nginx errors)mempool
,mempoolAll
,mempoolTx
methods for Blockfrost Mempool- use
@blockfrost/openapi
for type definitions
- Support for preview and preprod networks
parseAsset
now also returnsassetNameHex
⚠️ BREAKING CHANGE: RemovedisTestnet
option. Network is automatically selected based on the project ID. In case of using legacy Project ID you can manually setnetwork
option.
- response types in
txsMetadata
addressesUtxosAsset
,addressesUtxosAssetAll
methods returning list of the address's utxos containing a given assetverifyWebhookSignature
to verify signature sent as part of Blockfrost webhook requesturl
property inBlockfrostServerError
andBlockfrostClientError
objects set to an URL where the failed request was sent to
deriveAddress
memory leak by freeing WASM objects
- updated @blockfrost/openapi & regenerated types to match reflect changes in Blockfrost API
deriveAddress
derive Byron addresses- Rate limiter to match the limits of Blockfrost API. For additional customization, see options documentation.
- Updated
cardano-serialization-lib
to v10 - Lowered number of retries for failed requests to 3
- order pagination option from
epochsNext
,epochsPrevious
,blocksNext
, andblocksPrevious
script
→scriptsByHash
scriptDatum
→scriptsDatum
scriptRedeemers
→scriptsRedeemers
scriptJson
→scriptsJson
scriptCbor
→scriptsCbor
- added exports for util functions
getFingerprint
deriveAddress
poolsExtended
,poolsExtendedAll
endpointsblockAddress
,blockAddresses
for retrieving all addresses that were affected in a block
deriveAddress
is no longer a method on BlockfrostAPI, but rather a standalone function exported from@blockfrost/blockfrost-js
- params in
deriveAddress
and stake address derivation - incorrect user-agent header
getAccount
method
- incorrect user-agent header (backported from v4.0.0)
- testnet option for
getAccount
3.0.0 was accidentally tagged as beta in npm
http2
option (default false)debug
option (default false) - logs to stdout/stderr all fired request and errors thrown by Got- derive network from project id
- new helper methods
epochsBlocksAll
,epochsBlocksByPoolIdAll
,epochsStakesAll
,epochsStakesByPoolIdAll
andpoolsAll
- new methods
addressesExtended
andaccountsAddressesTotal
- Axios → Got
- removed
retryCount
,retryDelay
,retry429
- added
retryOptions
see: https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#retry
- thrown errors (
BlockfrostServerError
,BlockfrostClientError
) are now subclasses ofError
- updated @blockfrost/openapi & regenerated types to match reflect changes in Blockfrost API
- return type of epochsStakesByPoolId and epochsBlocksByPoolId
assetsPolicyById
response schema- ipfs add maxContentLength and maxBodyLength
metadataTxsLabels
andmetadataTxsLabel
endpoints types
- sort response in
getAccount
- alonzo support
script
,scripts
,scriptJson
,scriptCbor
,scriptDatum
,scriptRedeemers
endpointsblocksLatestTxs
,blocksLatestTxsAll
endpoints
accountsAddressesAssets
andaccountsAddressesAssetsAll
endpoints
network
endpoint
addressesTransactionsAll
empty params
- Methods with
all
empty params
- Methods with
all
accept object as additional parameters
{ batchSize: number; order: 'asc' | 'desc' }
- asset utils
parseAsset
- dotenv dependency
- deprecated methods addressesTxs and assetsTxs
- ipfs path parameter
- pagination types
- "@blockfrost/openapi": "0.1.24",
- all paginated endpoints now accept pagination object instead of parameters
count: number;
page: number;
order: 'asc' | 'desc';
- nutlink address endpoint
- IPFS Blockfrost API
- dependencies
- nutlink endpoints
txSubmit
param as hex
retryCount
paramretryDelay
param- axios
requestTimeout
params
accountsMirs
andtxsMirs
endpoints = MIR supportaccountsWithdrawals
endpoint
- build
- build
- addressesTransactions cursor types
- userAgent option
- FABULOUS error responses
- openapi 0.1.19
- addressesTransactions endpoint to accept new from and to parameters (cursor)
- changed delay between requests to 1s on 429
- openapi 0.1.18
- addressesTransactions endpoint
- addressesTransactionsAll endpoint
- assetsTransactions endpoint
- addressesTxsAll errors
- blocksTxsAll endpoint
- health endpoint response
- openapi 0.1.15
- addressesTxsAll pagination
- addressesUtxosAll pagination
- array missing in some
/txs
types, see: https://github.com/blockfrost/openapi/releases/tag/v0.1.13
- txSubmit header
- many properties / required properties, see: https://github.com/blockfrost/openapi/releases/tag/v0.1.12
- addressesTxsAll
- addressesUtxosAll
- txSubmit param
- testnet option
- new methods see: https://github.com/blockfrost/openapi/releases/tag/v0.1.8
- new methods see: https://github.com/blockfrost/openapi/releases/tag/v0.1.9
- missing
/tx/submit
- missing
/assets
- pagination to all endpoints (page,count,order)
- npm bundle size
- customBackend parameter
- Initial commit