Skip to content

thirdweb@5.42.0

Compare
Choose a tag to compare
@jnsdls jnsdls released this 30 Jul 02:37
· 3051 commits to main since this release
195064a

Minor Changes

  • #3847 e27ebef Thanks @kien-ngo! - Add prebuilt component: BuyDirectListingButton for Marketplace v3

    import { BuyDirectListingButton } from "thirdweb/react";
    
    <BuyDirectListingButton
      contractAddress="0x..." // contract address of the marketplace v3
      chain={...} // the chain which the marketplace contract is deployed on
      client={...} // thirdweb client
      listingId={100n} // the listingId or the item you want to buy
      quantity={1n} // optional - see the docs to learn more
    >
      Buy NFT
    </BuyDirectListingButton>
  • #3857 d5e5467 Thanks @gregfromstl! - Adds useChainMetadata to retrieve metadata for a chain such as name, icon, available faucets, block explorers, etc.

    import { useChainMetadata } from "thirdweb/react";
    
    const { data: chainMetadata } = useChainMetadata(defineChain(11155111));
    
    console.log("Name:", chainMetadata.name); // Sepolia
    console.log("Faucets:", chainMetadata.faucets); // ["https://thirdweb.com/sepolia/faucet"]
    console.log("Explorers:", chainMetadata.explorers); // ["https://sepolia.etherscan.io/"]

Patch Changes

  • #3846 cdb2970 Thanks @kien-ngo! - Handle ERC20 approval for the ClaimButton

  • #3843 91edae5 Thanks @kien-ngo! - Expose multicall & erc1155:encodeSafeTransferFrom extension

  • #3867 109575e Thanks @gregfromstl! - Fix wallet social login button styling

  • #3854 7ec421f Thanks @kien-ngo! - Add util function: parseAbiParams

    import { parseAbiParams } from "thirdweb/utils";
    
    const example1 = parseAbiParams(
      ["address", "uint256"],
      ["0x.....", "1200000"],
    ); // result: ["0x......", 1200000n]
  • #3869 bd44ce9 Thanks @joaquim-verges! - Export more wallet creation and connection types