How to Extend the ChainSafe Web3 Unity SDK
summary
Step‑by‑step demo shows how to add a new Unity package that depends on the ChainSafe Web3 Unity SDK, create an assembly and four scripts (create interface first, implement concrete type, implement ILifecycleParticipant), register the service via a static extension that calls AddSingleton and retrieve it with web3.ServiceProvider.GetRequiredService, and fix packages by editing packages/manifest.json. Examples include wrappers for Ramp and Web3Auth, prefab scripts for ERC‑20 calls, and a working log output proving the extension runs.
AI-written summary · about
chapters (8)
- 0:00Welcome
- 0:23ChainSafe and Web3 SDK
- 1:07Extending Web3 SDK
- 4:15Setting up the project for extension
- 10:11New Unity package
- 15:49Dependency injection
- 20:32Extension ideas
- 23:42Q&A








