get_apply_transfer_details

function get_apply_transfer_details(tx: gtx_transaction, apply_op_index: integer): (tx_rid: byte_array, args: immutable_mirror_struct<apply_transfer>, (tx_rid: byte_array, args: immutable_mirror_struct<init_transfer>, sender_account_id: byte_array))(source)

Given a transaction that contains the apply_transfer operation and the index it's at, this function retrieves the transaction RID, the arguments to the init_transfer operation and the details of the init_transfer as returned by get_init_transfer_details.

Throws "APPLY TRANSFER NOT FOUND" if the op_index does not point to apply_transfer

Throws if the init_tx_op_index of the apply_transfer operation does not point to init_transfer on its init_transfer_tx

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

Parameters

tx

the transaction containing the apply_transfer operation

apply_op_index

the index of the apply_transfer operation in tx

See also

get_init_transfer_details

for information on what details it returns

core.auth.is_auth_op

for information on auth operations