get_init_transfer_details

function get_init_transfer_details(tx: gtx_transaction, op_index: integer): (tx_rid: byte_array, args: immutable_mirror_struct<init_transfer>, sender_account_id: byte_array)(source)

Given a transaction that contains the init_transfer operation and the index it's at, this function retrieves the transaction RID, the arguments to the init_transfer operation and the ID of the sender account.

Throws "INIT TRANSFER NOT FOUND" if the op_index does not point to init_transfer on tx

Throws if the operation preceding the init_transfer is not an auth operation

Parameters

tx

the transaction containing the init_transfer operation

op_index

the index of the init_transfer operation in tx

See also

core.auth.is_auth_op

for information on auth operations