pub fn output_asset_id_and_to(index: u64) -> Option<(AssetId, Address)> 
Expand description

Gets the asset id and the receiver of the output at index.

Arguments

  • index: [u64] - The index of the output to get the asset id and the receiver of.

Returns

  • [Option<AssetId, Address>] - The asset id and the receiver of the output.

Examples

use std::outputs::output_asset_id_and_to;

fn foo() {
    let (output_asset_id, output_receiver) = output_asset_id_and_to(0);
    log(output_asset_id);
    log(output_receiver);
}