For exact inference on each coin you can invert the CDF of a binomial distribution to construct a confidence interval. Here is a related thread that discusses this idea. For comparing the coins to each other to see if there is evidence that the long-run probability of heads differs between the two coins you can invert either the two-sample Wald, score, or likelihood ratio test to construct a confidence interval. You could consider using a log or logit link function to improve the operating characteristics of the test. This will have you investigating whether the rate ratio or the odds ratio equals 1 instead of the difference in rates equalling 0. Here is an example investigating a single proportion by inverting a Wald test with a log link or a logit link.
If you prefer ease of implementation and your sample size is not small then you can use an identity link function while inverting a one-sample and two-sample Wald test:
$100(1-\alpha)\%$ CI for $p_1$ and $p_2$:
$$\hat{p}_j\pm z_{1-\alpha/2}\sqrt{\hat{p}_j(1-\hat{p}_j)/n_j}, \hspace{3mm}j=1,2 $$
$100(1-\alpha)\%$ CI for $p_2-p_1$:
$$\hat{p}_2-\hat{p}_1 \pm z_{1-\alpha/2}\sqrt{\hat{p}_2(1-\hat{p}_2)/n_2 + \hat{p}_1(1-\hat{p}_1)/n_1} $$
where $z_{1-\alpha/2}$ is the $100(1-\alpha/2)^{th}$ percentile of the standard normal distribution and $j$ indexes the two coins. For a 95% CI you would use $z_{1-\alpha/2}=1.96$.
If the $100(1-\alpha)\%$ confidence interval for the difference in proportions contains 0 then the hypothesis $H_0: p_2-p_1=0$ is plausible at level $\alpha$, as are all of the other hypotheses that make up the confidence interval.