Releases: alchemyplatform/alchemy-sdk-js
Releases · alchemyplatform/alchemy-sdk-js
v2.3.0
2.3.0
Major Changes
- Added the
DebugNamespace
to the top-levelAlchemy
object. TheDebugNamespace
is used to replay and inspect transactions and mined blocks in greater detail.
Minor Changes
- Added the
tokenUriTimeoutInMs
option toNftNamespace.getNftsForContract()
to specify the timeout duration for fetching an NFT's underlying metadata. - Fixed a bug where using
AlchemySubscriptions.PENDING_TRANSACTIONS
with a string array input would throw an error (#222). - Added support for the
refreshCache
option inNftNamespace.getNftMetadata()
. This option is now available when using theoptions
overload. The original method without theoptions
overload is now deprecated. - Added support for the
requestTimeout
option in theAlchemySettings
object to configure a timeout forNftNamespace
andNotifyNamespace
methods. Thanks @Abbaskt! - Added the
contractDeployer
anddeployedBlockNumber
into theNftContract
object. Methods that return NFTs such asNftNamespace.getNftsForOwner()
andNftNamespace.getContractsForOwner()
now include this information under thecontract
field.
v2.2.5
2.2.5
Major Changes
- Added
NftNamespace.getContractsForOwner()
to fetch all NFT contracts for a specified owner address. Thanks @xeno097!
Minor Changes
- Fixed a bug in
NftNamespace.getNftsForOwner()
where theopenSea
metadata was not included in the returned NFT. - Marked the
NftExcludeFilters
type as deprecated. Please useNftFilters
instead. - Added support for the
orderBy
param toNftNamespace.getNftsForOwner()
andNftNamespace.getContractsForOwner()
.
v2.2.4
2.2.4
Major Changes
Minor Changes
- Fixed a bug where
newHeads
subscriptions would error and crash when reconnecting to the websocket. - Fixed a bug where certain subscriptions would not reconnect after the websocket reconnected.
- Added exports for
toUtf8Bytes
andtoUtf8String
inUtils
.
v2.2.3
2.2.3
Major Changes
Minor Changes
- Fixed a typo with the
AlchemySettings.batchRequests
property.
v2.2.2 (DEPRECATED!)
2.2.2
Major Changes
Minor Changes
- Added support for ENS resolution to the
NotifyNamespace
andWebsocketNamespace
methods. - Added the
batchRequests
setting inAlchemySettings
. Enabling this setting will automatically batch and send json-rpc requests to reduce network overhead. - Included new export for the
Interface
class from ethers to simplify encoding ABI when usingeth_call
. - Added support for the
NftNamespace.getNftMetadataBatch()
method to fetch metadata for multiple NFTs in a single call. - Added support for the
NftNamespace.getNftSales()
method to fetch NFT sales across different marketplaces. Thanks @xeno097!
v2.2.1
2.2.1
Major Changes
Minor Changes
- Fixed a bug where
AlchemyConfig.getWebsocketProvider()
was not exported as a public method. This method allows you get the underlyingWebsocketProvider
that is implemented by ethers. - Added the
NftNamespace.summarizeNftAttributes()
method to get the summary of attribute prevalence for all NFTs in a contract. - Added the
NftNamespace.searchContractMetadata()
method to search for a keyword across ERC721 and ERC1155 contract metadata. - Added support for ENS resolution on several
CoreNamespace
methods. You should now be able to pass in an ENS domain into any param that requires an owner address. - Added the
CoreNamespace.resolveName()
andCoreNamespace.lookupAddress()
methods to resolve and lookup ENS domains and their owner addresses. - Fixed a bug where the
Accept-Encoding
header was incorrectly included in requests that originated from the browser (#174). - Added the
openSea
response toNftNamespace.getContractMetadata()
to match the REST endpoint (#162).
v2.2.0
2.2.0
Major Changes
- Added the
NotifyNamespace
to the top-levelAlchemy
object. TheNotifyNamespace
is used to perform CRUD operations on webhooks in the Notify API. - Added the
alchemy_minedTransactions
subscription event to theWebsocketNamespace
. This subscription emits full transaction objects or hashes that are mined on the network based on provided filters. - Added the
NftNamespace.computeRarity()
method to get the rarity attributes of the provided NFT. Thanks @xeno097!
Minor Changes
v2.1.1
2.1.1
Minor Changes
- Added the
AIDROPS
enum toNftNamespace.getNftsForOwner()
. - Added the
spamInfo
field to the response forgetNftsForOwner()
andgetNftsForContract()
. - Fixed a bug where type declarations were not available when using
NodeNext
module resolution. Thanks @quentinverlhac! - Marked Ropsten, Rinkeby, and Kovan
Network
enums as deprecated. Please switch over to Goerli.
v2.1.0
Major Changes
- POTENTIALLY BREAKING: Fixed a typing bug where the
totalSupply
field in anNftContract
should have typestring
instead ofnumber
. - Updated the
Nft
class to include the contract metadata in theNft.contract
field. - Added commonly used utility methods from ethers.js into a top-level
Utils
export. - Added the
NftNamespace.verifyNftOwnership()
method to replace the deprecatedcheckNftOwnership()
method. - Added
Contract
andContractFactory
exports from ethers into the top-level exports.
Minor Changes
- Added support for
withTokenBalances
inNftNamespace.getOwnersForContract()
. - Added support for the
erc20
token type and pagination forCoreNamespace.getTokenBalances()
. - Added
bytes
field to theMedia
object in the NFT metadata responses to indicate the size of the media in bytes. Note that thesize
field is not supported by the backend and will be removed in the next version.
v2.0.3
Minor Changes
- Added support for the
pageSize
parameter inGetNftsForOwnerOptions
to specify the number of NFTs fetched when usingalchemy.nft.getNftsForOwner()
. - Added support for a Wallet object. This object is identical to the Ethers
Wallet
class. - Added support for Arbitrum Goerli network via the
Network.ARB_GOERLI
enum. - Added support for the AStar Mainnet network via the
Network.ASTAR_MAINNET
enum. - Added typed request/response overloads for
CoreNamespace.getAssetTransfers()
for when thewithMetadata
param is true. - Added support the
tokenUriTimeoutInMs
parameter ongetNftsForOwner()
,getNftMetadata()
, andgetNftsForContract()
.