{"id":19113448,"url":"https://github.com/fielding/web3-test","last_synced_at":"2026-07-16T06:33:28.153Z","repository":{"id":232409812,"uuid":"649960444","full_name":"fielding/web3-test","owner":"fielding","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-06T02:54:56.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T10:38:07.191Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fielding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-06T02:54:55.000Z","updated_at":"2023-06-06T02:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"70daa309-585b-43ff-8ae6-c698253d9ae1","html_url":"https://github.com/fielding/web3-test","commit_stats":null,"previous_names":["fielding/web3-test"],"tags_count":0,"template":false,"template_full_name":"0xjimmy/svelte-kit-ethers-template","purl":"pkg:github/fielding/web3-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fweb3-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fweb3-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fweb3-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fweb3-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fielding","download_url":"https://codeload.github.com/fielding/web3-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fweb3-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35534109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-09T04:36:20.501Z","updated_at":"2026-07-16T06:33:28.136Z","avatar_url":"https://github.com/fielding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte Kit Ethers Template\n\n## Basic Setup\n\nInstall dependencies\n```bash\nyarn\n```\nEnter your own or a RPC provider endpoint for your project in the `rpcUrl` parameter of `./src/lib/config.ts` to make on-chain calls, and interact with Metamask, etc. You can use the default RPC provider used, or replace `https://rpc.ankr.com/eth` with your RPC provider.\n```js\nexport const NETWORKS: Network[] = [\n  {\n    chainId: 1,\n    rpcUrl: 'https://rpc.ankr.com/eth', // Your RPC endpoint, add here\n...\n```\n\nStart development server\n```bash\nyarn dev\n```\n\n\n\n**Building**\nBefore creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:\n\n```bash\nyarn build\n```\n\n## Features\n\n### Wallet \u0026 Providers\n\nAfter adding a list of networks in `./src/lib/config.ts`, you have access to ethers providers for each network.\n```ts\nimport { networkProviders: { [chainId: string]: providers.JsonRpcProvider } } from '$lib/stores/provider'\n```\n\n\nMethods to connect wallets\n* `connectMetamask` - Connect Metamask or other injected wallets\n* `connectWalletConnect` - Wallet Connect Connection\n* and `disconnect`\n\nStores for the connection information are also provided\n```ts\nimport {\n    accountChainId,\n    accountProvider,\n    connected,\n    walletAddress\n} from '$lib/stores/provider'\n```\n* `accountChainId` -  `{ chainId: number, supportedNetwork: boolean } ` supportedNetwork is `true` if you have provided configuration options for this network \n* `accountProvider` -  [EIP-11933](https://eips.ethereum.org/EIPS/eip-1193) compliant provider object. Generally used with ethers.providers.Web3Provider($accountProvider)\n* `connected` - boolean\n* `walletAddress` - Defaults to 0x0000000000000000000000000000000000000000 if not connected\n\n### Contract State Syncing\n\nIn `src/lib/globalState.ts` is an example usage of [ether-state](https://github.com/decentralisedtech/ether-state) - A library for syncing the state of smart contracts in your frontend.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fweb3-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffielding%2Fweb3-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fweb3-test/lists"}