update secret_key and transaction_id