[][src]Function xpx_supercontracts_sdk::transactions::secret_proof

pub fn secret_proof(params: &SecretProof) -> FunctionResult

Send to transaction pool SecretProof transaction

Examples

use xpx_supercontracts_sdk::transactions::{
	flush,
	secret_proof,
};
use xpx_supercontracts_sdk::transactions_type::SecretProof;

let params = SecretProof{
	hash_type: 10,
	proof: None,
	recipient: None,
};
// Add transaction to Transactions Pool
let tx_result = secret_proof(&params);
if tx_result.is_err() {
    // Some error handling
}