Purpose The purpose of this study is to measure financial inclusion (FI) and to examine the role of digital financial literacy (DFL) and its components, and various socio-demographics in relation to FI. In addition, the mediating effect of digital financial attitudes (DFA) on the relationship between digital financial knowledge (DFK) and digital financial behaviour (DFB), as well mediating effect of DFA and DFB on the relationship between DFK and FI, is being explored.Design/methodology/approach Using a cross-sectional research design, we utilize a dataset from the survey of adults’ financial literacy in Bosnia and Herzegovina, collected from the representative sample of 1,096 adults in 2022. The main methodology relies on logistic and ordinal logistic regression analyses and PROCESS for mediation analyses.Findings The findings suggest that the effect of DFK on DFB is partially mediated by DFA. In addition, the effect of DFK on FI is fully mediated through three pathways: DFA, DFB, and DFA and DFB in serial mediation. Age, education, employment status and residence are significantly related to FI. Internet access is significant only for FI scores but not for adults’ banking status. Although women are almost twice as unbanked as men, we find no gender-based differences in financial product holdings, FI or adults’ banking status.Practical implications There is a need to enhance DFK and DFA to enable adults to use financial products. Financial institutions could use our results in designing and promoting their services.Social implications Policy implications are seen in the need for developing national strategies for financial education, with an emphasis on strengthening DFL, especially DFK and DFA, which will enhance the formal FI of adults. Also, governments should work on expanding Internet access.Originality/value The results make a contribution to the theory of planned behaviour. They contribute to the limited empirical evidence of the mediating role of DFA in relationship to DFB, as well as the mediating role of DFA and DFB in relationship to FI.