{"id":19580236,"url":"https://github.com/xclud/dart_erc20","last_synced_at":"2025-04-27T08:32:15.016Z","repository":{"id":61973192,"uuid":"461233802","full_name":"xclud/dart_erc20","owner":"xclud","description":"Interface of the ERC20 standard as defined in the EIP-20 Token Standard.","archived":false,"fork":false,"pushed_at":"2025-04-19T11:30:35.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T16:53:18.887Z","etag":null,"topics":["dart","erc20","ethereum","flutter","smart-contracts","web3","web3dart"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/erc20/","language":"Dart","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/xclud.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-02-19T15:36:00.000Z","updated_at":"2025-04-19T11:30:39.000Z","dependencies_parsed_at":"2023-01-28T06:01:29.289Z","dependency_job_id":null,"html_url":"https://github.com/xclud/dart_erc20","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_erc20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_erc20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_erc20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_erc20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/dart_erc20/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251112546,"owners_count":21538162,"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":["dart","erc20","ethereum","flutter","smart-contracts","web3","web3dart"],"created_at":"2024-11-11T07:24:32.866Z","updated_at":"2025-04-27T08:32:10.002Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Interface of the ERC20 standard as defined in the EIP-20 Token Standard.\n\n[![pub package](https://img.shields.io/pub/v/erc20.svg)](https://pub.dev/packages/erc20)\n\n## Features\n\n- `allowance` function.\n- `approve` function.\n- `balanceOf` function.\n- `decimals` function.\n- `name` function.\n- `symbol` function.\n- `totalSupply` function.\n- `transfer` function.\n- `transferFrom` function.\n- `approvalEvents` event.\n- `transferEvents` event.\n\n## Getting started\n\nIn your `pubspec.yaml` file add:\n\n```dart\ndependencies:\n  erc20: any\n```\n\n## Usage\n\n```dart\nimport 'package:erc20/erc20.dart';\n```\n\n```dart\nconst infuraId = '\u003cYOUR_INFURA_PROJECTID\u003e';\nfinal client = Web3Client('https://mainnet.infura.io/v3/$infuraId', Client());\nfinal shibaInu = ERC20(\n    address: EthereumAddress.fromHex(\n        '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce'),\n    client: client,\n);\n\nfinal symbol = await shibaInu.symbol();\nfinal name = await shibaInu.name();\nfinal decimals = await shibaInu.decimals();\n\nprint(symbol); //SHIB\nprint(name); // SHIBA INU\nprint(decimals) // 18;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_erc20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fdart_erc20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_erc20/lists"}