{"id":13792358,"url":"https://github.com/zyield/eth_contract","last_synced_at":"2026-02-20T12:37:30.718Z","repository":{"id":38793222,"uuid":"136519900","full_name":"zyield/eth_contract","owner":"zyield","description":"A set of helper methods for calling ETH Smart Contracts via JSON RPC.","archived":false,"fork":false,"pushed_at":"2019-03-04T17:01:44.000Z","size":70,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-17T08:55:10.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyield.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":"2018-06-07T19:06:58.000Z","updated_at":"2025-01-19T16:04:33.000Z","dependencies_parsed_at":"2022-08-29T19:30:40.064Z","dependency_job_id":null,"html_url":"https://github.com/zyield/eth_contract","commit_stats":null,"previous_names":["agilealpha/eth_contract"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/zyield/eth_contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyield%2Feth_contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyield%2Feth_contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyield%2Feth_contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyield%2Feth_contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyield","download_url":"https://codeload.github.com/zyield/eth_contract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyield%2Feth_contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29651126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-08-03T22:01:11.329Z","updated_at":"2026-02-20T12:37:30.680Z","avatar_url":"https://github.com/zyield.png","language":"Elixir","readme":"# EthContract\n\nA set of helper methods to help query ETH smart contracts\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `eth_contract` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:eth_contract, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/eth_contract](https://hexdocs.pm/eth_contract).\n\n## Configuration\n\nAdd your JSON RPC provider URL in config.exs\n\n```elixir\nconfig :ethereumex,\n  url: \"http://\"\n```\n\n## Usage\n\nLoad and parse the ABI\n\n```\nabi = EthContract.parse_abi(\"crypto_kitties.json\")\n```\n\nGet meta given a token_id and method name\n\n```\nEthContract.meta(%{token_id: 45, method: \"getKitty\", contract: \"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d\", abi: abi})\n```\n\nThis will return a map with all the meta:\n\n```\n%{                                                                                                                                                                                \"birthTime\" =\u003e 1511417999,\n  \"cooldownIndex\" =\u003e 0,  \n  \"generation\" =\u003e 0,\n  \"genes\" =\u003e 626837621154801616088980922659877168609154386318304496692374110716999053,\n  \"isGestating\" =\u003e false,\n  \"isReady\" =\u003e true,\n  \"matronId\" =\u003e 0,\n  \"nextActionAt\" =\u003e 0,\n  \"sireId\" =\u003e 0,\n  \"siringWithId\" =\u003e 0\n}\n```\n","funding_links":[],"categories":["Roadmap"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyield%2Feth_contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyield%2Feth_contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyield%2Feth_contract/lists"}