substrate-api-client icon indicating copy to clipboard operation
substrate-api-client copied to clipboard

Introduce more helper functions

Open haerdib opened this issue 2 years ago • 0 comments

There are still many not yet defined getter / extrinsic calls. For ease of use, one could implement more of such helper functions

Check out substrate side rpc calls: https://github.com/paritytech/substrate/tree/7d233c2446b5a60662400a0a4bcfb78bb3b79ff7/client/rpc-api/src e.g. System calls: https://github.com/paritytech/substrate/blob/7d233c2446b5a60662400a0a4bcfb78bb3b79ff7/client/rpc-api/src/system/mod.rs#L33-L122

Api client side impl example: https://github.com/scs/substrate-api-client/blob/7e5962bd2c9149f990b34aa25ad7bc7f6f92c868/src/api/rpc_api/frame_system.rs#L77-L113

see https://github.com/scs/substrate-api-client/pull/402 for an example PR.

haerdib avatar Jan 04 '23 12:01 haerdib