There are onchain functions in that library (SendCoins, GetChainBalance). It uses LND as a connector to Bitcoin Core.