{"id":39104244,"url":"https://github.com/eigerco/axelar-solana-relayer","last_synced_at":"2026-01-17T19:20:15.349Z","repository":{"id":267596467,"uuid":"881531985","full_name":"eigerco/axelar-solana-relayer","owner":"eigerco","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-24T07:36:43.000Z","size":4461,"stargazers_count":2,"open_issues_count":24,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-24T09:25:08.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eigerco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-31T19:01:48.000Z","updated_at":"2025-10-15T10:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a322d18-c479-4c46-932e-3eb9add821a5","html_url":"https://github.com/eigerco/axelar-solana-relayer","commit_stats":null,"previous_names":["eigerco/axelar-solana-relayer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eigerco/axelar-solana-relayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Faxelar-solana-relayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Faxelar-solana-relayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Faxelar-solana-relayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Faxelar-solana-relayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eigerco","download_url":"https://codeload.github.com/eigerco/axelar-solana-relayer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Faxelar-solana-relayer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28516753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T19:20:14.646Z","updated_at":"2026-01-17T19:20:15.331Z","avatar_url":"https://github.com/eigerco.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana Axelar Relayer\n\nThis repository contains the Relayer that allows the Solana Gateway to communicate with Axelar Amplifier API.\n\n## Table of Contents\n\n- [Repository contents](#repository-contents)\n  - [Components](#components)\n  - [Utility crates](#utility-crates)\n  - [Related repositories](#related-repositories)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n\n## Repository contents\n\n![High-level overview](https://github.com/user-attachments/assets/c2403e07-b1c1-417e-a926-963554a69f9a)\n\nThe relayer is built of composable plug-n-play items, called `components`, which can communicate with each other via channels and (optionally) persist in their storage.\n\n[**Project entrypoint main.rs**](crates/solana-axelar-relayer).\n\n### Components\n- [**Solana Listener**](crates/solana-listener): Receives transaction log data from Solana using WebSockets. Listens to Gas Service and the Gateway.\n- [**Solana Event Forwarder**](crates/solana-event-forwarder): Parses transaction inner instructions into events and combines the Gas Service events with the Gateway events. Forwards them to the Amplifier component.\n- [**Rest Service**](crates/rest-service): Receives an off-chain payload from the end-user, combines it with an on-chain event and sends it to the Amplifier API.\n- [**Solana Gateway Task Processor**](crates/solana-gateway-task-processor): Receives tasks from Amplifier API and composes transactions to interact with the Gateway and the destination contract.\n\n### Utility crates\n- [**File-based storage**](crates/file-based-storage): Simple file-based memory-mapped buffer storage for tracking metadata for different components.\n- [**Retrying Solana HTTP Sender**](crates/retrying-solana-http-sender): Solana RPC client wrapped with a retrying mechanism to account for Solana node fluctuations. Used by all components that require Solana RPC access.\n- [**Effective TX Sender**](crates/effective-tx-sender): Evaluate the necessary compute budget and unit price and prefix this new instruction inside the transaction.\n- [**Gateway Gas Computation**](crates/gateway-gas-computation): The Axelar Solana Gateway has a multi-computation model; therefore, figuring out how much money was spent on a single gateway action needs to be summed together based on all the actions that the relayer did across many transactions.\n\n\n## Related Repositories\n\n- [**Solana Contracts**](https://github.com/eigerco/solana-axelar): The Solana on-chain contracts and home to some of the utillty crates used in this repository.\n- [**Relayer Core**](https://github.com/eigerco/axelar-relayer-core): All Axelar-related relayer infrastructure. Used as a core building block for the Solana Relayer. The Axelar-Starknet and Axlelar-Aleo relayers also use it.\n\n## Getting Started\n\n### Prerequisites\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [Solana CLI (for running tests during development)](https://solana.com/docs/intro/installation)\n- [Surfpool](https://github.com/txtx/surfpool) (for gas cost estimation) [(docker image)](https://hub.docker.com/r/surfpool/surfpool).\n\n### Surfpool Dependency\n\nThis relayer depends on [Surfpool](https://hub.docker.com/r/surfpool/surfpool), a Solana state forking service that enables accurate gas cost estimation by running transactions on forked cluster state. Surfpool is used by the [Solana Gateway Task Processor](crates/solana-gateway-task-processor) component for estimating execution costs.\n\n#### Running Surfpool with Docker\n\nAn official Docker image is available at `surfpool/surfpool`. Here's how to run it:\n\n```bash\n# Run Surfpool for devnet\ndocker run -p 8899:8899 surfpool/surfpool:latest start --slot-time 1 --no-tui -n devnet\n\n# Run Surfpool for testnet\ndocker run -p 8899:8899 surfpool/surfpool:latest start --slot-time 1 --no-tui -n testnet\n\n# Run Surfpool for mainnet\ndocker run -p 8899:8899 surfpool/surfpool:latest start --slot-time 1 --no-tui -n mainnet\n```\n\n#### Architecture Compatibility\n\n**Important**: Currently, only ARM64 Docker images are available for Surfpool. If you're running on a different architecture (x86_64, etc.), you'll need to use QEMU emulation:\n\n1. Install `qemu-user-static` for cross-architecture support:\n   ```bash\n   # On Ubuntu/Debian\n   sudo apt-get install qemu-user-static\n\n   # On macOS\n   brew install qemu\n   ```\n\n2. Enable multi-architecture support:\n   ```bash\n   docker run --rm --privileged multiarch/qemu-user-static --reset -p yes\n   ```\n\n3. Run Surfpool with platform specification:\n   ```bash\n   # For devnet\n   docker run --platform linux/arm64 -p 8899:8899 surfpool/surfpool:latest start --slot-time 1 --no-tui -n devnet\n\n   # For mainnet\n   docker run --platform linux/arm64 -p 8899:8899 surfpool/surfpool:latest start --slot-time 1 --no-tui -n mainnet\n   ```\n\nFor more information about QEMU user static emulation, see the [official repository](https://github.com/multiarch/qemu-user-static).\n\n### Installation\n\n```bash\ngit clone git@github.com:eigerco/axelar-solana-relayer.git\ncargo xtask test\ncargo xtask --help # see what else you can do\n\n# Confgure the config\ncp config.example.toml config.toml\n# Run the relayer\ncargo run -p axelar-solana-relayer\n```\n\n## About [Eiger](https://www.eiger.co)\n\nWe are engineers. We contribute to various ecosystems by building low-level implementations and core components. We work on several Axelar and Solana projects, and connecting these two is a fundamental goal to achieve cross-chain execution.\n\nContact us at hello@eiger.co\nFollow us on [X/Twitter](https://x.com/eiger_co)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigerco%2Faxelar-solana-relayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feigerco%2Faxelar-solana-relayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigerco%2Faxelar-solana-relayer/lists"}