test-opstack-kit
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

opstack-kit

Bridging hooks for OP Stack Chains

Npm Badge

Features

  • Simplifies cross L1 & L2 interactions

Installation

npm i opstack-kit

or

pnpm i opstack-kit

or

bun i opstack-kit

or

yarn add opstack-kit

Example

After configuring the network in your app, use 'opstack-kit-chains' just import the "opstack-kit" hooks to start interacting with OP Stack chains.

import { useWriteDepositETH } from 'opstack-kit'

const { writeDepositETH } = useWriteDepositETH()

return (
  <button
    onClick={() =>
      writeDepositETH({
        args: {
          to: '0x215db47f1B2ae03ec45024Cf62ce82879b137469',
          amount: 1n,
        },
        l2ChainId: 11155420,
      })}
  >
    Deposit ETH
  </button>
)

Donate

0xB6Be617b1D6fE5DbdD21A6AcFD9e97A35ddCEfF5

Package Sidebar

Install

npm i test-opstack-kit

Weekly Downloads

642

Version

1.9.0

License

MIT

Unpacked Size

2.84 MB

Total Files

171

Last publish

Collaborators

  • thetestingz1