Skip to content

Releases: thirdweb-dev/js

@thirdweb-dev/sdk@4.0.93

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/react@4.7.0

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Minor Changes

  • #3274 7a7b491 Thanks @MananTank! - Add sections prop and deprecate popularChains and recentChains for showing chains in sections in Network Selector screen in ConnectWallet component

    <ConnectWallet
      modalSize="wide"
      networkSelector={{
        sections: [
          {
            label: "Recently used",
            chains: [Optimism, Arbitrum],
          },
          {
            label: "Favorites",
            chains: [Polygon, Sepolia],
          },
          {
            label: "Popular",
            chains: [Ethereum, Base],
          },
        ],
      }}
    />

Patch Changes

@thirdweb-dev/react-native-adapter@1.2.0

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Minor Changes

@thirdweb-dev/react-core@4.7.0

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/cli@0.14.6

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/chains@0.1.117

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/auth@4.1.91

12 Jun 05:01
62ee972
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.28.0

04 Jun 09:04
5d47e50
Compare
Choose a tag to compare

Minor Changes

  • #3198 ca31a6c Thanks @gregfromstl! - Exports toSerializableTransaction to convert preparedTransaction into a fully serializable transaction.
    Exports estimateGasCost to estimate the gas cost of a transaction in ether and wei.
    Exports getGasPrice to get the currect gas price for a chain.

    toSerializableTransaction

    import { prepareTransaction, toSerializableTransaction } from "thirdweb";
    
    const transaction = await prepareTransaction({
      transaction: {
        to: "0x...",
        value: 100,
      },
    });
    const serializableTransaction = await toSerializableTransaction({
      transaction,
    });
    
    account.sendTransaction(serializableTransaction);

    estimateGasCost

    import { estimateGasCost } from "thirdweb";
    
    const gasCost = await estimateGasCost({ transaction });

    getGasPrice

    import { getGasPrice } from "thirdweb";
    
    const gasPrice = await getGasPrice({ client, chain });

Patch Changes

@thirdweb-dev/wallets@2.5.32

04 Jun 09:04
5d47e50
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [ae9496e, 043f0da, f13a40b]:
    • @thirdweb-dev/sdk@4.0.92
    • @thirdweb-dev/chains@0.1.116

@thirdweb-dev/unity-js-bridge@0.6.41

04 Jun 09:04
5d47e50
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [ae9496e, 043f0da, f13a40b]:
    • @thirdweb-dev/sdk@4.0.92
    • @thirdweb-dev/chains@0.1.116
    • @thirdweb-dev/wallets@2.5.32
    • @thirdweb-dev/auth@4.1.90