I want to know the implementation of endpoint from (https://github.com/paritytech/substrate-api-sidecar)

I found some interface here https://github.com/polkadot-js/api/blob/master/packages/rpc-augment/src/augment/jsonrpc.ts#L85 and some implementation https://github.com/polkadot-js/api/blob/master/packages/api-derive/src/chain/getHeader.ts

but this function doesn't makes sense to me. lack of RxJS understanding I guess. can anyone give me a good direction? I want to see the actual implementation of that particular API...

1 Answer 1


Sure, the entry to the API is here. Then, the actual logic of it is here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.