public function getRedeemScriptByPath($path) {
        $walletScript = $this->getWalletScriptByPath($path);

        $redeemScript = $walletScript->isP2SH() ? $walletScript->getRedeemScript() : null;
        $witnessScript = $walletScript->isP2WSH() ? $walletScript->getWitnessScript() : null;
        return [$walletScript->getAddress()->getAddress(), $redeemScript, $witnessScript];
    }
public function getRedeemScriptByPath($path) {
        $walletScript = $this->getWalletScriptByPath($path);

        $redeemScript = $walletScript->isP2SH() ? $walletScript->getRedeemScript() : null;
        $witnessScript = $walletScript->isP2WSH() ? $walletScript->getWitnessScript() : null;
        return [$walletScript->getAddress()->getAddress(), $redeemScript, $witnessScript];
    }
public function getRedeemScriptByPath ( $ path ) { $ walletScript = $ this -> getWalletScriptByPath ( $ path ) ; $ redeemScript = $ walletScript -> isP2SH ( ) ? $ walletScript -> getRedeemScript ( ) : null ; $ witnessScript = $ walletScript -> isP2WSH ( ) ? $ walletScript -> getWitnessScript ( ) : null ; return [ $ walletScript -> getAddress ( ) -> getAddress ( ) , $ redeemScript , $ witnessScript ] ; }
get address and redeemScript for specified path

@param string    $path
@return array[string, ScriptInterface, ScriptInterface|null]     [address, redeemScript, witnessScript]
get address and redeemScript for specified path