public function upgradeKeyIndex($identifier, $keyIndex, $primaryPublicKey) {
        $data = [
            'key_index' => $keyIndex,
            'primary_public_key' => $primaryPublicKey
        ];

        $response = $this->blocktrailClient->post("wallet/{$identifier}/upgrade", null, $data, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function upgradeKeyIndex($identifier, $keyIndex, $primaryPublicKey) {
        $data = [
            'key_index' => $keyIndex,
            'primary_public_key' => $primaryPublicKey
        ];

        $response = $this->blocktrailClient->post("wallet/{$identifier}/upgrade", null, $data, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function upgradeKeyIndex ( $ identifier , $ keyIndex , $ primaryPublicKey ) { $ data = [ 'key_index' => $ keyIndex , 'primary_public_key' => $ primaryPublicKey ] ; $ response = $ this -> blocktrailClient -> post ( "wallet/{$identifier}/upgrade" , null , $ data , RestClient :: AUTH_HTTP_SIG ) ; return self :: jsonDecode ( $ response -> body ( ) , true ) ; }
upgrade wallet to use a new account number
the account number specifies which blocktrail cosigning key is used

@param string    $identifier             the wallet identifier to be upgraded
@param int       $keyIndex               the new account to use
@param array     $primaryPublicKey       BIP32 extended public key - [key, path]
@return mixed
upgrade wallet to use a new account number the account number specifies which blocktrail cosigning key is used