Skip to main content

Questions tagged [typegen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

How to use the metadata type in a custom type?

export default { types: { VCRequested: { xxx: "xxx", assertion: "Assertion", }, Assertion: { xxxx: "xxx" ...
Verin's user avatar
  • 21
1 vote
2 answers
32 views

What are the RPC endpoints that is usually unique to Substrate vs the unique to Polkadot nodes?

I used typegen to generate types for Substrate, Kusama and Polkadot networks. And I got the exact same types for the rpc endpoints (rpc methods). Is this normal? Should not be there some unique ...
Muhammad Altabba's user avatar
1 vote
1 answer
65 views

Generated Types Not Found

Hi we are following along with the typegen docs on polkadotjs documentation. and the generated code cannot find most the types. an example line: Called: AugmentedEvent<ApiType, [caller: ...
donkeydonkey's user avatar
0 votes
0 answers
13 views

How to get Typegen to use the Custom RPC Runtime

We have implemented custom template pallet rpc methods and they are visible when doing a call to the node on rpc.methods we get template_sum5 template_sumAndStore however typegen is not adding them......
donkeydonkey's user avatar
0 votes
1 answer
35 views

Polkadot Typegen importing JS extension instead of TS

We are using the typegen to create types for our custom chain. Following the docs The code that is generated is kinda strange. In the augment-api.ts file it tries to import all the other generated ts ...
donkeydonkey's user avatar
5 votes
1 answer
58 views

How to access Polkadot/Kusama runtime types from polkadot.js api to work with the transactions arguments

With subxt is straight-forward as you can access the types by generating them using metadata and use them in your fn arguments but in polkadot.js is kinda not straight forward as where and how the ...
Mrisho Lukamba's user avatar