A small library to validate Bitcoin addresses.
To the excellent base58check and bech32 packages.
Partly inspired by the npm package bitcoin-address-validation.
Address address = validate("1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2");
print(address.type);
// => Type.p2pkh
print(address.network);
// => Network.mainnet
print(address.segwit);
// => false
bitcoin_flutter also allows address validation. However, it lacks P2SH support.