pub fn event_ownership_transferred_get(
contract_id: ContractId,
event_ix: u64
) -> Option<OwnershipTransferred>Expand description
Retrieves the OwnershipTransferred event.
§Parameters
contract_id: Id of the contract.event_ix: Contract-scoped index of an event.
§Result
OwnershipTransferred data, null if not exist.
§Sample request
CONTRACT_ID=1_376_994_832_725_996_537_612_682_825_051_864_610_558_585_037_795
EVENT_IX=23
dfx canister call coreledger_backend event_ownership_transferred_get "($CONTRACT_ID, $EVENT_IX)"
§Sample response
( opt record {
new_owner = opt principal "r63pu-qjqo3-yvyrr-xhymp-63lj4-oycfx-7r4yr-mspkh-guhdl-vrjkr-cae";
previous_owner = null;
})