Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wormhole-foundation/example-aptos-relayer


https://github.com/wormhole-foundation/example-aptos-relayer

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Example Aptos Relayer

## Run a Spy (Prerequisite)

### Mainnet

```
docker run \
--platform=linux/amd64 \
-p 7073:7073 \
--entrypoint /guardiand \
ghcr.io/wormhole-foundation/guardiand:latest \
spy --nodeKey /node.key --spyRPC "[::]:7073" --network /wormhole/mainnet/2 --bootstrap /dns4/wormhole-mainnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWQp644DK27fd3d4Km3jr7gHiuJJ5ZGmy8hH4py7fP4FP7
```

### Testnet

```
docker run \
--platform=linux/amd64 \
-p 7073:7073 \
--entrypoint /guardiand \
ghcr.io/wormhole-foundation/guardiand:latest \
spy --nodeKey /node.key --spyRPC "[::]:7073" --network /wormhole/testnet/2/1 --bootstrap /dns4/wormhole-testnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWAkB9ynDur1Jtoa97LBUp8RXdhzS5uHgAfdTquJbrbN7i
```

## Run the Relayer

### Build

```
npm ci
npm run build
```

### Run

```
APTOS_KEY="" APTOS_ADDRESS="" SPY="localhost:7073" APTOS_URL="https://testnet.aptoslabs.com" AIRDROP_AMOUNT="10000000" NETWORK="testnet" npm run start
```