toP2wpkhInP2sh method

P2shAddress toP2wpkhInP2sh({
  1. bool compressed = true,
})

p2sh nested segwit(p2wpkh)

Implementation

P2shAddress toP2wpkhInP2sh({bool compressed = true}) {
  final addr = toSegwitAddress(compressed: compressed);
  return P2shAddress.fromSegwitScript(
      script: Script(script: addr.toScriptPubKey()),
      type: AddressType.p2wpkhInP2sh);
}