Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wormhole-foundation/example-aptos-relayer
https://github.com/wormhole-foundation/example-aptos-relayer
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wormhole-foundation/example-aptos-relayer
- Owner: wormhole-foundation
- License: other
- Created: 2022-10-31T23:06:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T00:39:56.000Z (9 months ago)
- Last Synced: 2024-04-01T16:10:16.481Z (9 months ago)
- Language: TypeScript
- Size: 90.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```