public function createMultiSigAddress(
                        $label,
                        $reqSigs,
                        $s1,
                        $s2,
                        $s3 = null,
                        $s4 = null
                    ) {
        $passphrases_array = [];

        if (!is_null($s4)) {
            array_push($passphrases_array, $s4);
        }
        if (!is_null($s3)) {
            array_push($passphrases_array, $s3);
        }
        if (!is_null($s2)) {
            array_push($passphrases_array, $s2);
        }
        if (!is_null($s1)) {
            array_push($passphrases_array, $s1);
        }

        $passphrases = $this->createPassphrases($passphrases_array);

        $keys = $this->createKeys($passphrases);

        $pubKeyStr = implode(',', $keys);

        return $this->blockIo->get_new_dtrust_address(
                                    [
                                        'label'               => $label,
                                        'public_keys'         => $pubKeyStr,
                                        'required_signatures' => $reqSigs,
                                    ]
                                );
    }
public function createMultiSigAddress(
                        $label,
                        $reqSigs,
                        $s1,
                        $s2,
                        $s3 = null,
                        $s4 = null
                    ) {
        $passphrases_array = [];

        if (!is_null($s4)) {
            array_push($passphrases_array, $s4);
        }
        if (!is_null($s3)) {
            array_push($passphrases_array, $s3);
        }
        if (!is_null($s2)) {
            array_push($passphrases_array, $s2);
        }
        if (!is_null($s1)) {
            array_push($passphrases_array, $s1);
        }

        $passphrases = $this->createPassphrases($passphrases_array);

        $keys = $this->createKeys($passphrases);

        $pubKeyStr = implode(',', $keys);

        return $this->blockIo->get_new_dtrust_address(
                                    [
                                        'label'               => $label,
                                        'public_keys'         => $pubKeyStr,
                                        'required_signatures' => $reqSigs,
                                    ]
                                );
    }
public function createMultiSigAddress ( $ label , $ reqSigs , $ s1 , $ s2 , $ s3 = null , $ s4 = null ) { $ passphrases_array = [ ] ; if ( ! is_null ( $ s4 ) ) { array_push ( $ passphrases_array , $ s4 ) ; } if ( ! is_null ( $ s3 ) ) { array_push ( $ passphrases_array , $ s3 ) ; } if ( ! is_null ( $ s2 ) ) { array_push ( $ passphrases_array , $ s2 ) ; } if ( ! is_null ( $ s1 ) ) { array_push ( $ passphrases_array , $ s1 ) ; } $ passphrases = $ this -> createPassphrases ( $ passphrases_array ) ; $ keys = $ this -> createKeys ( $ passphrases ) ; $ pubKeyStr = implode ( ',' , $ keys ) ; return $ this -> blockIo -> get_new_dtrust_address ( [ 'label' => $ label , 'public_keys' => $ pubKeyStr , 'required_signatures' => $ reqSigs , ] ) ; }
Create a MultiSig address.

@params $label string Containing the label of the address
@params $reqSigs integer Contining a value between 1 and 4
@params $s1,$s2,$s3, $s4 string Containing the passphrases for signing

@return object Contains MultiSig address details
Create a MultiSig address .