Skip to main content

read

Function read 

Source
async fn read<F, Fut>(
    account: NameOrAddress,
    rpc: RpcOpts,
    key: &str,
    label: &str,
    query: F,
) -> Result<()>
where F: FnOnce(IStorageCreditsInstance<RetryProvider<TempoNetwork>, TempoNetwork>, Address) -> Fut, Fut: Future<Output = Result<Value>>,
Expand description

Reads one account field from the precompile and prints it as key in JSON mode and after label otherwise.