{"id":16036264,"url":"https://github.com/noot/go-relayer-client","last_synced_at":"2025-04-09T19:34:35.724Z","repository":{"id":61628599,"uuid":"540800076","full_name":"noot/go-relayer-client","owner":"noot","description":"client and CLI for submitting txs to go-relayer","archived":false,"fork":false,"pushed_at":"2022-11-03T04:12:40.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T06:43:11.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-24T11:02:25.000Z","updated_at":"2024-01-17T02:00:38.000Z","dependencies_parsed_at":"2023-01-21T11:46:31.900Z","dependency_job_id":null,"html_url":"https://github.com/noot/go-relayer-client","commit_stats":null,"previous_names":["athanorlabs/go-relayer-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fgo-relayer-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fgo-relayer-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fgo-relayer-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fgo-relayer-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noot","download_url":"https://codeload.github.com/noot/go-relayer-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248098178,"owners_count":21047391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-08T22:02:19.930Z","updated_at":"2025-04-09T19:34:35.691Z","avatar_url":"https://github.com/noot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-relayer-client\n\nClient library for [go-relayer](https://github.com/AthanorLabs/go-relayer), used for submitting transactions to the relayer.\n\n## Requirements\n\n- go1.18+\n\n## Usage\n\n```go\n// ... code omitted\nreq := \u0026common.SubmitTransactionRequest{\n\tFrom:  from,\n\tTo:    to,\n\tValue: big.NewInt(0),\n\tGas:   big.NewInt(679639582),\n\tNonce: nonce,\n\tData:  calldata,\n}\n\nc := client.NewClient(\"http://localhost:8545\")\nresp, err := c.SubmitTransaction(req)\nif err != nil {\n\tpanic(err)\n}\n\nfmt.Println(\"sent tx to relayer: hash\", resp.TxHash)\n```\n\nFor a full example, see `examples/main.go`.\n\n### Run local example \n\nThe example in `examples/main.go` works with [go-relayer](https://github.com/AthanorLabs/go-relayer) locally.\n\nTo try it:\n\n1. Install and run ganache: \n```bash\nnpm i -g ganache\nganache --deterministic --accounts=50\n```\n\n2. Clone and build `go-relayer`:\n```bash\ngit clone https://github.com/AthanorLabs/go-relayer\ncd go-relayer\nmake build\n./bin/relayer --dev\n```\n\n3. Clone and build `go-relayer-client`:\n```bash\ngit clone https://github.com/AthanorLabs/go-relayer-client\ncd go-relayer-client\nmake build\n./bin/example\n```\n\nYou should see logs in the client as follows:\n```bash\nsent tx to relayer: hash 0xaaa5b2a84d1c4e4e5c251fe1ccb6059115267c6432d031615d20f5dae2771ddf\ntx successful!\n```\n\nYou should see logs in the relayer as follows:\n```bash\n2022-09-29T14:08:03.117-0400\tINFO\tcmd\tcmd/main.go:132\tstarting relayer with ethereum endpoint http://localhost:8545 and chain ID 1337\n2022-09-29T14:08:03.232-0400\tINFO\tcmd\tcmd/main.go:208\tdeployed MinimalForwarder.sol to 0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab\n2022-09-29T14:08:03.233-0400\tINFO\trpc\trpc/server.go:62\tstarting RPC server on http://localhost:7799\n2022-09-29T14:08:16.685-0400\tINFO\trelayer\trelayer/relayer.go:109\tsubmitted transaction 0xaaa5b2a84d1c4e4e5c251fe1ccb6059115267c6432d031615d20f5dae2771ddf\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoot%2Fgo-relayer-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoot%2Fgo-relayer-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoot%2Fgo-relayer-client/lists"}