A bitcoin blockchain API for web wallets