0.1.2 • Published 9 months ago

@permissionless/wagmi v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Overview

import { PermissionlessProvider } from "@permissionless/wagmi";

function Main() {
  return (
    <WagmiProvider config={config}>
      <QueryClientProvider client={queryClient}>
        <PermissionlessProvider
          capabilities={capabilities}
        >
          {/** ... */}
        </PermissionlessProvider>
        {" "}
      </QueryClientProvider>
    </WagmiProvider>
  );
}
import { useSendTransaction, useWaitForTransactionReceipt } from "wagmi"
import { 
    useSendTransaction, 
    useWaitForTransactionReceipt 
} from "@permissionless/wagmi" 

function App() {
  const {
    sendTransaction,
    data: transactionReference,
    isPending
  } = useSendTransaction()
  
  const { data: receipt, isPending: isReceiptPending } =
    useWaitForTransactionReceipt({
      hash: "0x1234"
      id: transactionReference 
    })

  const sendTransactionCallback = useCallback(async () => {
    console.log("Sending transaction...")
    sendTransaction({
      to: "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
      data: "0x1234"
    })
  }, [sendTransaction])

}

And that's it!

Features

  • ERC-7677 Paymaster service: Makes it easier to interact with an external smart account that offers support.
  • Sending multiple transactions: Makes it easier to send multiple transactions from an external smart account.
  • Built on & for wagmi: @permissionless/wagmi is designed to be a thin wrapper around wagmi, maintaining the same style and overall feel wagmi provides.
  • and a lot more coming soon...

Source Code

The source code for @permissionless/wagmi is available on GitHub

@permissionless/wagmi is distributed under an MIT License.

We welcome contributions from the community. If you would like to contribute, please open an issue or a pull request.

Feel free to ask any questions in our Telegram group

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

10 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.0

1 year ago