Looking at the docs, it seems I can only return custom weights in dispatchables
I want to be able to create data in storage then return the ID, because we will be calling the chain from a UI/Dapp
I am assuming this wont be possible because just because an extrinsic was called successfully doesn't mean the data is stored on-chain, we have to wait for consensus to be reached
So is there a way to return the value stored on-chain on the call itself? or is the best way to have a separate process check the chain state for the stored value?