Function std::outputs::output_asset_id
pub fn output_asset_id(index: u64) -> Option<AssetId> Expand description
Gets the asset id of the output at index.
If you want to get the asset id and the receiver of the output,
use output_asset_id_and_to instead.
Arguments
- index: [u64] - The index of the output to get the asset id of.
Returns
- [Option] - The asset id of the output.
Examples
use std::outputs::output_asset_id;
fn foo() {
    let output_asset_id = output_asset_id(0);
    log(output_asset_id);
}