https://github.com/scroll-tech/scroll-bridge-sdk
https://github.com/scroll-tech/scroll-bridge-sdk
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/scroll-tech/scroll-bridge-sdk
- Owner: scroll-tech
- Created: 2024-06-04T14:09:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-15T16:12:39.000Z (over 1 year ago)
- Last Synced: 2025-01-19T08:32:34.988Z (12 months ago)
- Language: TypeScript
- Size: 68.4 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @scroll-tech/scroll-bridge-sdk
## Batch indexing
To indexing the data from beginning, you can run the following command. It would take about 2 days to download.
```bash
yarn index:batch:scroll
```
To speed up the indexing process, you can download latest snapshot which is built by Scroll bi-weekly. It would take about 5 minutes to index from snapshot to latest state.
```bash
curl https://withdraw-proof.s3.us-west-2.amazonaws.com/scroll.batch.tar.gz
tar xvf state-cache/scroll.batch.tar.gz
```
And also use your own Ethereum and Scroll rpc nodes by creating `.env` file with following fields.
```
L1_SCROLL_RPC_URL=
L2_SCROLL_RPC_URL=
BLOCK_SYNC_STEP=1000
MAX_CONCURRENT_CALL=10
```
If you want to index testnet data, replace `scroll` with `scroll-sepolia`.
### Find withdraw proof by transaction hash or message hash
```bash
yarn index:search:scroll --tx-hash
yarn index:search:scroll --message-hash
```