Generate and Sync Updated Metadata

  1. Export Metadata JSON from Updated Chain

    subxt metadata --url ws://127.0.0.1:9944 > metadata-vX.Y.Z.json
  2. Run Codegen Tool

    • Input: metadata-vX.Y.Z.json

    • Output: Auto-generated C# types, calls, constants, events.

    Example:

    xcavate-codegen --input metadata-vX.Y.Z.json --output ./src/Xcavate.Blockchain
  3. Test Integration

    • Reference new types and methods in application code.

    • Compile and confirm interface stability with backend APIs.

Last updated