1

I want to decode blocks and transactions from the Node. I want to use https://github.com/paritytech/substrate . But I can not find methods about it. Could you tell me where it is ?

1 Answer 1

1

Are you referring to something like this:

let block = node_primitives::Block::decode(&mut &block_data[..]).unwrap();

https://github.com/paritytech/substrate/blob/ded44948e2d5a398abcb4e342b0513cb690961bb/bin/node/executor/tests/basic.rs#L896

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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