Socket
Book a DemoInstallSign in
Socket

@scroll-tech/contracts

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scroll-tech/contracts

A library for interacting with Scroll contracts.

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
23K
1.22%
Maintainers
3
Weekly downloads
 
Created
Source

A library for interacting with Scroll contracts.

This library includes contracts and interfaces needed to interact with the Scroll Smart Contracts deployed on both Layer 1 and Layer 2. This includes deposting and withdrawing ETH, ERC20 tokens and NFTs or sending arbitrary messages.

Overview

Installations

npm install @scroll-tech/contracts

Usage

Once installed, you can use the contracts in the library by importing them:

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@scroll-tech/contracts/L1/gateways/IL1ETHGateway.sol";

contract MyContract {
  function bridgeETH(address scrollBridge, uint256 gasLimit) public payable {
    IL1ETHGateway(scrollBridge).depositETH(msg.sender, msg.value, gasLimit);
  }
}

Visit the Bridge Documentation for API reference, architecture overview and guides with code examples.

About Scroll

Scroll is a bytecode equivalent zkEVM for Ethereum. It enables native compatibility for existing Ethereum applications and tools. Learn more about Scroll here.

Keywords

solidity

FAQs

Package last updated on 19 Aug 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.