1.8.0 • Published 8 months ago

opstack-kit v1.8.0

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

opstack-kit

Features

  • Simplifies cross L1 & L2 interactions
  • Supports "CustomGasToken" deposit & withdrawal functions
  • Supports multi-functionality & new fault-proof feature
  • CLI command development tools

Installation

Recommend: use Nodejs v20+ and add -g is a global package installation. (guide)

npm i -g opstack-kit

or

pnpm i -g opstack-kit

or

bun i -g opstack-kit

or

yarn add -g opstack-kit

Example

After use opstack-kit/chains for configuring the network in your app, 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
1.8.0

8 months ago

1.7.0

9 months ago

1.6.0

9 months ago

1.5.0

9 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.4.0

10 months ago

1.3.0

10 months ago

1.0.0

12 months ago

0.9.4

12 months ago

0.9.3

12 months ago

0.9.2

12 months ago

0.9.1

12 months ago

0.9.0

1 year ago