{"id":13421593,"url":"https://github.com/blocknative/notify","last_synced_at":"2025-04-12T19:32:42.603Z","repository":{"id":39105596,"uuid":"193790611","full_name":"blocknative/notify","owner":"blocknative","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-27T04:46:03.000Z","size":1975,"stargazers_count":50,"open_issues_count":5,"forks_count":9,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-26T14:06:13.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/blocknative.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":"2019-06-25T22:17:21.000Z","updated_at":"2024-12-20T03:15:30.000Z","dependencies_parsed_at":"2023-02-15T05:45:50.814Z","dependency_job_id":null,"html_url":"https://github.com/blocknative/notify","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknative%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknative%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknative%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknative%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocknative","download_url":"https://codeload.github.com/blocknative/notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621364,"owners_count":21134821,"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-07-30T23:00:26.127Z","updated_at":"2025-04-12T19:32:42.249Z","avatar_url":"https://github.com/blocknative.png","language":"TypeScript","readme":"# Notify\n\nA JavaScript library for real time notifications for Ethereum transaction state changes.\n\n## Install\n\n`npm install bnc-notify`\n\n## Quick Start\n\n```javascript\nimport Notify from 'bnc-notify'\nimport Web3 from 'web3'\n\nconst web3 = new Web3(window.ethereum)\n\nconst options = {\n  dappId: 'Your dappId here',\n  networkId: 1\n}\n\n// initialize notify\nconst notify = Notify(options)\n\n// get users' account address\nconst accounts = await window.ethereum.enable()\n\n// send a transaction\nweb3.eth\n  .sendTransaction({\n    from: accounts[0],\n    to: '0x792ec62e6840bFcCEa00c669521F678CE1236705',\n    value: '100000'\n  })\n  // listen for transaction hash\n  .on('transactionHash', hash =\u003e {\n    // pass the hash to notify.hash function for transaction updates and notifications\n    const { emitter } = notify.hash(hash)\n\n    // use emitter to listen to transaction events\n    emitter.on('txSent', console.log)\n    emitter.on('txPool', console.log)\n    emitter.on('txConfirmed', console.log)\n    emitter.on('txSpeedUp', console.log)\n    emitter.on('txCancel', console.log)\n    emitter.on('txFailed', console.log)\n    emitter.on('txStuck', console.log)\n    emitter.on('all', console.log)\n  })\n```\n\n## Documentation\n\nFor detailed documentation head to [docs.blocknative.com](https://docs.blocknative.com/notify)\n","funding_links":[],"categories":["Software Development"],"sub_categories":["JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknative%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocknative%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknative%2Fnotify/lists"}