pub fn output_asset_to(index: u64) -> Option<Address> 
Expand description

Returns the receiver 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 receiver of.

Returns

  • [Option] - The receiver of the output.

Examples

use std::outputs::output_asset_to;

fn foo() {
    let output_receiver = output_asset_to(0);
    log(output_receiver);
}