Function std::tx::tx_witness_data
pub fn tx_witness_data<T>(index: u64) -> Option<T>
Expand description
Get the witness data at index
.
Additional Information
Unsafe. Assumes the type is correct.
This function does not support ownership types(Vec, Bytes, String, etc).
Arguments
index
- The index of the witness to get the data for.
Returns
- [Option] - The witness data at
index
.
Examples
use std::tx::tx_witness_data;
fn foo() {
let witness_data: u64 = tx_witness_data(0).unwrap();
log(witness_data);
}