pub fn caller_addresses() -> Vec<Address> 
Expand description

Get the owners of the inputs (of type Input::Coin or Input::Message) to a
TransactionScript.

Additional Information

The list is not deduplicated, so there may be repeated addresses in the returned vector.

Returns

  • [Vec] - The addresses of the owners of the inputs.

Examples

use std::auth::caller_addresses;

fn foo(some_address: Address) {
    let addresses = caller_addresses();

    assert(addresses.get(0).unwrap() == some_address);
}