Skip to content

@rainbow-me/rainbowkit@2.0.8

Compare
Choose a tag to compare
@DanielSinclair DanielSinclair released this 17 May 07:51
· 75 commits to main since this release
f3d10a1

Patch Changes

  • 8841891: Added real-time balance fetching based on the Recent Transaction API. As a transaction is confirmed on-chain, the user's gas balance will be updated to reflect the transaction.

    import { useAddRecentTransaction } from "@rainbow-me/rainbowkit";
    
    export default () => {
      const addRecentTransaction = useAddRecentTransaction();
    
      return (
        <button
          onClick={() => {
            addRecentTransaction({
              hash: "0x...",
              description: "...",
            });
          }}
        >
          Add recent transaction
        </button>
      );
    };