Skip to content

Conversation

@sinzii
Copy link
Member

@sinzii sinzii commented Nov 10, 2025

Unified chain spec api for both v2 and legacy client, we removed the method to fetch genesis hash since it's already fetched and available within the client during initialization.

const client = await DedotClient.new({ ... });

console.log('chain genesisHash', client.genesisHash);
console.log('chain name', await client.chainSpec.chainName());
console.log('chain props', await client.chainSpec.properties());

# Conflicts:
#	packages/api/src/client/BaseSubstrateClient.ts
#	packages/api/src/client/LegacyClient.ts
@sinzii sinzii merged commit f4115c5 into main Nov 10, 2025
4 checks passed
@sinzii sinzii deleted the tvu-chain-spec-api branch November 10, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants