{"id":15355233,"url":"https://github.com/gomah/graphql-ethereum-address","last_synced_at":"2026-03-09T04:31:25.363Z","repository":{"id":57253424,"uuid":"469517187","full_name":"Gomah/graphql-ethereum-address","owner":"Gomah","description":"Ethereum address scalar types for GraphQL","archived":false,"fork":false,"pushed_at":"2022-03-14T06:22:35.000Z","size":170,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T17:09:58.292Z","etag":null,"topics":["address","ethereum","gql","graphql","scalar"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Gomah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-13T23:04:55.000Z","updated_at":"2023-06-03T21:28:43.000Z","dependencies_parsed_at":"2022-08-31T22:20:18.552Z","dependency_job_id":null,"html_url":"https://github.com/Gomah/graphql-ethereum-address","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fgraphql-ethereum-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fgraphql-ethereum-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fgraphql-ethereum-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gomah%2Fgraphql-ethereum-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gomah","download_url":"https://codeload.github.com/Gomah/graphql-ethereum-address/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020163,"owners_count":21199501,"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":["address","ethereum","gql","graphql","scalar"],"created_at":"2024-10-01T12:23:19.914Z","updated_at":"2025-10-18T11:10:36.555Z","avatar_url":"https://github.com/Gomah.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-ethereum-address\n\n[![npm version][npm-version-src]][npm-version-href]\n[![Dependencies][david-dm-src]][david-dm-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-000000.svg?style=flat-square)](https://prettier.io/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-black.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\n\u003e Ethereum address scalar types for GraphQL\n\n## Quickstart\n\nInstall with yarn:\n\n```bash\nyarn add graphql-ethereum-address\n```\n\nInstall with npm:\n\n```bash\nnpm install graphql-ethereum-address\n```\n\n## Integration to your existing GraphQL Schema\n\nYou need to add a scalar definition to your SDL type definitions and resolvers like below:\n\n### In your SDL type definitions\n\n```graphql\nscalar EthereumAddress\n```\n\nYou can also import ready-to-use type definitions like below:\n\n```ts\nimport { EthereumAddressTypeDefinition } from 'graphql-ethereum-address';\n\nconst typeDefs = [\n  EthereumAddressTypeDefinition,\n  // other typeDefs\n];\n```\n\n### In your resolver map\n\n```ts\nimport { EthereumAddressResolver } from 'graphql-ethereum-address';\n\nconst myResolverMap = {\n  EthereumAddress: EthereumAddressResolver,\n\n  Query: {\n    // more stuff here\n  },\n\n  Mutation: {\n    // more stuff here\n  },\n};\n```\n\n### Using it in your type definitions\n\nThat's it. Now you can use the scalar type in your schema definition like this:\n\n```graphql\ntype Wallet {\n  id: String\n  address: EthereumAddress\n}\n```\n\n### With Nexus\n\n```ts\nimport { asNexusMethod } from 'nexus';\nimport { makeSchema } from 'nexus';\nimport { EthereumAddressResolver } from 'graphql-ethereum-address';\n\nconst EthereumAddressScalar = asNexusMethod(EthereumAddressResolver, 'eth');\n\nexport const Wallet = objectType({\n  name: 'Wallet',\n  definition(t) {\n    t.string('id');\n    t.eth('address');\n  },\n});\n\nconst schema = makeSchema({ types: [EthereumAddressScalar, Wallet] });\n```\n\n## Development\n\n1. Clone this repository\n2. Install dependencies using `yarn install` or `npm install`\n3. Build the module using `yarn build` or `npm run build`\n4. Start development server using `yarn dev` or `npm run dev`\n\n## 📑 License\n\n[MIT License](./LICENSE)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/dt/graphql-ethereum-address.svg?style=flat-square\n[npm-version-href]: https://npmjs.com/package/graphql-ethereum-address\n[npm-downloads-src]: https://img.shields.io/npm/v/graphql-ethereum-address/latest.svg?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/graphql-ethereum-address\n[david-dm-src]: https://david-dm.org/gomah/graphql-ethereum-address/status.svg?style=flat-square\n[david-dm-href]: https://david-dm.org/gomah/graphql-ethereum-address\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomah%2Fgraphql-ethereum-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomah%2Fgraphql-ethereum-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomah%2Fgraphql-ethereum-address/lists"}