Skip to content

feat: allow attach ChainApi interface to useClient & useTypink#211

Merged
sinzii merged 3 commits intomainfrom
feat/add-use-client
Aug 7, 2025
Merged

feat: allow attach ChainApi interface to useClient & useTypink#211
sinzii merged 3 commits intomainfrom
feat/add-use-client

Conversation

@sinzii
Copy link
Member

@sinzii sinzii commented Aug 6, 2025

We can now attach ChainApi interface into useTypink or useClient hooks:

const { client } = useTypink<PolkadotApi>(); 
// or
const { client } = useClient<PolkadotApi>();

// client will now have type of `CompatibleSubstrateClient<PolkadotApi>`

@sinzii sinzii changed the title featadd use client feat: improve useClient & useTypink Aug 6, 2025
@sinzii sinzii changed the title feat: improve useClient & useTypink feat: allow attach ChainApi interface to useClient & useTypink Aug 6, 2025
@sinzii sinzii merged commit 64dcfd0 into main Aug 7, 2025
5 checks passed
@sinzii sinzii deleted the feat/add-use-client branch August 7, 2025 17:34
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.

1 participant