West Ham have agreed a fee with Liverpool to sign striker Andy Carroll on a permanent basis, Sky sources understand.