pub fn value_return(value: &[u8])
Expand description
Sets the blob of data as the return value of the contract.
ยงExamples
use near_sdk::env::value_return;
value_return(b"String data");
use near_sdk::env::value_return;
use near_sdk::serde_json;
value_return(
serde_json::json!({
"account": "test.near",
"value": 5
}).to_string().into_bytes().as_slice()
);
Example of usage here