centrifuge / go-substrate-rpc-client

Substrate RPC client for go aka GSRPC
Apache License 2.0
204 stars 179 forks source link

polkadot staking #299

Open LXHLeaner opened 2 years ago

LXHLeaner commented 2 years ago
  1. Can use this "https://github.com/centrifuge/go-substrate-rpc-client" to deal with polkadot staking ?
  2. Can use this "https://github.com/centrifuge/go-substrate-rpc-client" to search transaction by txid?
cdamian commented 11 months ago

Hey @LXHLeaner,

  1. What exactly do you mean by dealing with polkadot staking? If it's about submitting extrinsics related to staking, yes.
  2. Sure, you would need to query each block and then look for the transaction ID though - maybe the example found here - https://github.com/centrifuge/go-substrate-rpc-client/blob/master/registry/retriever/extrinsic_retriever_live_test.go#L151, might help.