postchain_client::encoding::gtvFunction encode
Source pub fn encode<'a>(
query_type: &str,
query_args: Option<&'a mut Vec<(&str, Params)>>,
) -> Vec<u8>
Expand description
Encodes a query and its arguments into GTV format
§Arguments
query_type - The type of query to encode
query_args - Optional vector of query arguments as (name, value) pairs
§Returns
Vec<u8> - Encoded query as a byte vector