pub fn stx_transfer_consolidated(
    env: &mut Environment<'_, '_>,
    from: &PrincipalData,
    to: &PrincipalData,
    amount: u128
) -> Result<Value>
Expand description

Do a “consolidated” STX transfer. If the ‘from’ principal has locked STX, and they have unlocked, then process the STX unlock and update its balance in addition to spending tokens out of it.