Socket
Socket
Sign inDemoInstall

@across-protocol/boba-sdk

Package Overview
Dependencies
171
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @across-protocol/boba-sdk

[Optimism] Tools for working with Boba, fork of Optimism


Version published
Maintainers
5
Install size
43.2 MB
Created

Readme

Source

@eth-optimism/sdk

The @eth-optimism/sdk package provides a set of tools for interacting with Optimism.

Installation

npm install @eth-optimism/sdk

Docs

You can find auto-generated API documentation over at sdk.optimism.io.

Using the SDK

CrossChainMessenger

The CrossChainMessenger class simplifies the process of moving assets and data between Ethereum and Optimism. You can use this class to, for example, initiate a withdrawal of ERC20 tokens from Optimism back to Ethereum, accurately track when the withdrawal is ready to be finalized on Ethereum, and execute the finalization transaction after the challenge period has elapsed. The CrossChainMessenger can handle deposits and withdrawals of ETH and any ERC20-compatible token. Detailed API descriptions can be found at sdk.optimism.io. The CrossChainMessenger automatically connects to all relevant contracts so complex configuration is not necessary.

The Optimism SDK includes various utilities for handling Optimism's transaction fee model. For instance, estimateTotalGasCost will estimate the total cost (in wei) to send at transaction on Optimism including both the L2 execution cost and the L1 data cost. You can also use the asL2Provider function to wrap an ethers Provider object into an L2Provider which will have all of these helper functions attached.

Other utilities

The SDK contains other useful helper functions and constants. For a complete list, refer to the auto-generated SDK documentation

Keywords

FAQs

Last updated on 19 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc