btc_address_validate 0.1.1 btc_address_validate: ^0.1.1 copied to clipboard
A minimal library to validate Bitcoin mainnet and testnet addresses
import 'package:btc_address_validate/btc_address_validate.dart';
void main() {
Address address = validate("1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2");
print(address.type);
// => Type.p2pkh
print(address.network);
// => Network.mainnet
print(address.segwit);
// => false
}